CODA R package with brmsfit object

Hello,

I am trying to get some model diagnostics (for a brms fit object) using the CODA R package (e.g. cumuplot, gelman.plot) - I noticed that the as.mcmc.brmsfit funtion is deprecated. Is there any function to do it now?

Thanks!!

You should still be able to use that function even if it’s deprecated, it might just throw a warning message. In general we’re recommending using the newer diagnostics in the posterior package so I think that’s why the as.mcmc function is listed as deprecated, but it should still work.

Many thanks! In the meantime I figured out two good options for running a cumuplot:

post<-as_draws_matrix(modfit)
cplot<-cumuplot(post)

or

post2<-as.matrix(modfit)
cplot<-cumuplot(post2)

1 Like