Replies: 1 comment 5 replies
-
Sorry, I missed this due to the holidays! I think the problem is that you're hardcoding the input data set in the component definitions, so that the internally constructed data required for the "cp" likelihood isn't used for covariate evaluations. Change to this instead:
Depending on how your covariates are stored, you likely don't need the |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Good afternoon,
First of all, thank you for your work on this package and for this forum, both are very useful! I have been exploring them and, along with the online documentation provided, I have been able to dive into inlabru!
I would like to ask for your help in the analysis I am trying to do with some data using inlabru. The context is the following. The data were collected during an aerial survey in three coastal regions in Greenland meant for distance sampling analysis. The GPS locations of each detection were also recorded. Also, some spatial covariates are provided in a raster object
We thought about fitting a point process model that accounts for both detectability and location of objects of interest following your example available here.
However, since each detection corresponds to one group of objects of interest (instead of a single object of interest), I also have the group size variable and that must be accounted for too. I saw that this question was already raised here and thus, if I understood it correctly, group size needs to be accounted in a separate process and then a joint model must be estimated in a similar way as shown here.
After considering all this, I tried to fit a joint model for the objects’ location (and detectability) and group size. Below is an example of the model components, formula and likelihoods for what I call “jointfit2” which is the full model, i.e., the model with all covariates provided:
The same was done for other models (both model components and formulas were modified accordingly):
Below is a print of the summary of the jointfit2 object (full model):
When calculating and plotting the model predictions for the whole study region, some issues arise:
Can you please help me understand why this happens when I add the region covariate to the model?
I also tried modifying the model components and formula by adding the variable "size" containing the group size in my
data.trunc
object but it did not work... Or maybe I am not understanding how to do it...If there is any more information needed, let me know and I will provide it asap.
Thank you in advance for your attention!
Iúri J. F. Correia
Beta Was this translation helpful? Give feedback.
All reactions