VarCorr.tramME {tramME} | R Documentation |
Variances and correlation matrices of random effects
Description
This function calculates the variances and correlations from
varcov.tramME
.
Usage
## S3 method for class 'tramME'
VarCorr(x, ...)
Arguments
x |
A |
... |
optional arguments (for consistency with the generic method) |
Details
The function only returns the correlation matrices that belong to actual
random effects (defined for groups in the data) and ignores the random
effects parameters of the smooth shift terms. To extract these, the user
should use varcov
with full = TRUE
.
Note that, by default, print.VarCorr.tramME
prints the
standard deviations of the random effects, similarly to lme4
.
Value
A list of vectors with variances and correlation matrices corresponding to the various grouping variables.
Examples
data("sleepstudy", package = "lme4")
fit <- BoxCoxME(Reaction ~ Days + (Days | Subject), data = sleepstudy)
VarCorr(fit)
[Package tramME version 1.0.6 Index]