Skip to content

MCMC residuals error about length(mcmc_samples) #178

Answered by seananderson
seananderson asked this question in Q&A
Discussion options

You must be logged in to vote

This is due to a recent change we had to make to get back on CRAN. See the residuals vignette for working code:
https://pbs-assess.github.io/sdmTMB/articles/web_only/residual-checking.html

Search for "mcmc".

I just added a check for this to provide a more useful warning.

Basically, install the sdmTMBextra package and use sdmTMBextra::predict_mle_mcmc() first. The rstan/MCMC part was causing memory issues on some obscure CRAN checks that I could not solve otherwise.

Also note that for delta models, the default is the first component of the model. There’s also a model = 2 option (in this case in the predict_mle_mcmc() call). I have just added a message about that if you don't specify the model

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by seananderson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant