GMRC-HUS / ShiBA

Version Bayesienne de GmrcShinystat
https://gmrc-hus.github.io/ShiBA/
GNU General Public License v3.0
0 stars 0 forks source link

Add convergence check #9

Closed DrFabach closed 1 year ago

DrFabach commented 1 year ago
severacf commented 1 year ago

Modèle

model_1 = stan_glm(kid_score ~ mom_hs, family = gaussian(link = "identity"), data = kidiq, refresh = 0)

extraction AC

s = as.array(model_1) mcmc <- do.call(mcmc.list, plyr:::alply(s[, , -(length(s[1, 1, ]))], 2, as.mcmc)) autocorr.diag(mcmc, lags = c(1:50))->AC

test

is.element("TRUE", AC>0.2)