Extract Variance and Correlation Components
This function calculates the estimated standard deviations,
correlations and covariances of the group-level terms
in a multilevel model of class brmsfit
.
For linear models, the residual standard deviations,
correlations and covariances are also returned.
## S3 method for class 'brmsfit' VarCorr( x, sigma = 1, summary = TRUE, robust = FALSE, probs = c(0.025, 0.975), ... )
x |
An object of class |
sigma |
Ignored (included for compatibility with
|
summary |
Should summary statistics be returned
instead of the raw values? Default is |
robust |
If |
probs |
The percentiles to be computed by the |
... |
Currently ignored. |
A list of lists (one per grouping factor), each with three elements: a matrix containing the standard deviations, an array containing the correlation matrix, and an array containing the covariance matrix with variances on the diagonal.
## Not run: fit <- brm(count ~ zAge + zBase * Trt + (1+Trt|visit), data = epilepsy, family = gaussian(), chains = 2) VarCorr(fit) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.