Closed cabuelow closed 4 years ago
We need a reproducible example. It may also help if you show us your Hmsc
and sampleMcmc
commands.
Hello, I could have this exact error if I haven't run sampleMcmc
. That is, you must first define your model with Hmsc()
, then you must run sampleMcmc()
to get the posterior samples. Functions like computeAssociations()
and predict()
use those posterior samples. Have you run sampleMcmc
?
Hi Jari, I loaded the saved m.spatial model object mentioned above, and tried running the 'computeAssociations' and 'predict' functions again, and this time they worked perfectly and I did not receive the error messages I posted.
Apologies for taking your time on this, and thanks very much for your help - I'm enjoying using the HMSC package.
This seems to be settled down.
Hello,
I have an hmsc model (probit) with 149 sampling units, 50 species, 16 covariates, 1 spatial random level, and five latent factors. The hmsc model object is stored as 'm.spatial'.
When I try to compute species associations using the following:
Similarly when I try to calculate predictions with the following:
I get the same error as above. Is there any advice for trouble-shooting this error?
Many thanks, Christina