brmsfit
. For linear models, the residual
standard deviations, correlations and covariances are also returned.## S3 method for class 'brmsfit'
VarCorr(x, estimate = "mean", as.list = TRUE, ...)
brmsfit
.estimate
fit_e <- brm(count ~ log_Age_c + log_Base4_c * Trt_c + (1+Trt_c|visit),
data = epilepsy, family = "poisson", n.chains = 1)
## return the means of random effects covariances
VarCorr(fit_e)
## return 2.5% and 97.5% quantiles of random effects covariances
VarCorr(fit_e, estimate = "quantile", probs = c(0.025, 0.975))
Run the code above in your browser using DataLab