gelman-rubin
Posted: Thu Dec 16, 2021 4:34 pm
I want to obtain gelman-rubin statistics after running models with multiple chains. I believe this can be done with the gelman.diag() function in R.
The syntax is:
where x is a mcmc.list object with more than one chain.
However, for the life of me, I cannot figure out how chains are stored and how to get them to be mcmc.list objects in order to analyze with gelman.diag().
Any insight would be greatly appreciated!
The syntax is:
Code: Select all
gelman.diag(x, confidence = 0.95, transform=FALSE, autoburnin=TRUE, multivariate=TRUE)
However, for the life of me, I cannot figure out how chains are stored and how to get them to be mcmc.list objects in order to analyze with gelman.diag().
Any insight would be greatly appreciated!