Model issues in producing variable graphs #188
-
Hello, I've been tasked with exploring species correlations and the effect of environmental variables on them, with the GLLVM approach being chosen as a good fit for the goals. As this is my first time using a GLLVM, I was given the tutorial held by this group in 2020 (and your other guides) as a sort of manual for how to achieve the desired results. However, I have run into some issues. The data I am using is: When I fit the model as shown: I receive the error message: “#In gllvm(speciestable.sub, num.lv = 2, family = binomial(link = "probit"), : There are responses full of zeros.” I saw that someone else here had a similar problem and the explanation given is that the warning is thrown when there are sites full of zero. However, all sites that contain only zeroes have already been excluded from this data set. Even when experimentally excluding sites with only 1 species present the warning persists. This becomes a bigger issue when I try to use the generated GLLVM for the process of exploring trends between the env. variable and latent variables. The graphs I receive look like this: The code used being: As it stands I’m not sure where the problem lies. Any advice would be greatly appreciated. Many thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hello! The warning
means that there are species that only contain zeros. These should be omitted. The ordination that you are showing is telling you that there is only one LV necessary, the second LV is zero. Note, that 19 environmental covariates is already quite a lot, and that you need at least 19+1+num.lv observations for every species to succesfully estimate all of these parameters. Do you have that much information for all the species? Note that if you are setting the model up as you are, the covariate effects are removed from the ordination, and there should be no relationship with the ordination and the covariates. If you are interested in relating the covariates to the ordination, have a look at this vignette how to do that more appropriately with constrained ordination instead. |
Beta Was this translation helpful? Give feedback.
Yes! If you have many covariates and not so much information, constrained, concurrent, or partial constrained ordination (num.RR +num.lv) can help. You could try fitting first an unconstrained ordination, look at the residual correlation plot, then change to a partial constrained ordination and do the same again, which still recreates the vignette in a similar fashion!