powered by
Extract the variance-covariance matrix of the random effects of an LmME model
# S3 method for LmME varcov(object, as.lm = FALSE, as.theta = FALSE, full = FALSE, ...)
A list of the covariance matrices or a vector of theta values.
A LmME object.
LmME
If TRUE, the returned values correspond to the LMM parameterization.
TRUE
Logical value, if TRUE, the values are returned in their reparameterized form.
Logical value; if TRUE, return all random effects elements, if FALSE, do not return the random effects parameters of the smooth terms.
FALSE
Optional arguments (unused).
data("sleepstudy", package = "lme4") fit <- LmME(Reaction ~ Days + (Days | Subject), data = sleepstudy) varcov(fit, as.lm = TRUE) varcov(fit, as.theta = TRUE, as.lm = TRUE)
Run the code above in your browser using DataLab