-
Hi, I see the function for extracting the residual correlation from the model. Is it also possible to get the shared environmental response, similarly as it is done in the boral package? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
Please see the |
Beta Was this translation helpful? Give feedback.
-
Hi @fhui28 Thanks for you help, but I'm still struggling with that. How do I manually construct this linear predictor? Can't I take it from the Would you mind to walk me through this construction? |
Beta Was this translation helpful? Give feedback.
-
Here is a worked example based on the first example in the gllvm package.
There might well be an easier way to do this [not up to date with the updates!], but I did not spot it. Good luck! |
Beta Was this translation helpful? Give feedback.
-
Thank you very much @fhui28 , It works amazingly! I just have few final questions now: is it possible to check the effect of one environmental variable at time? For the example you show, does it make sense to get the subset from the
Another question is how do I check the confidence interval of these correlation values? |
Beta Was this translation helpful? Give feedback.
-
In principle you can, but it's kind of meaningless to do as the correlation between any two species will have then directly and simply proportional to the difference between the two estimated coefficients of that covariate for those two species.
Sounds like something for simulation @jebyrnes? |
Beta Was this translation helpful? Give feedback.
-
I will leave a note here now that with the addition of random predictor slopes with It would not be too difficult to write something along the lines of |
Beta Was this translation helpful? Give feedback.
Here is a worked example based on the first example in the gllvm package.
There might well be an easier way to do this [not up to date with the updates!], but I did not spot it.
Good luck!