Learn R Programming

tramME (version 0.1.3)

varcov.LmME: Extract the variance-covariance matrix of the random effects of an LmME model

Description

Extract the variance-covariance matrix of the random effects of an LmME model

Usage

# S3 method for LmME
varcov(object, as.lm = FALSE, as.theta = FALSE, ...)

Arguments

object

A LmME object.

as.lm

If TRUE, the returned values correspond to the LMM parametrization.

as.theta

Logical value, if TRUE, the values are returned in their reparameterized form.

...

Optional arguments (unused).

Value

A list of the covariance matrices or a vector of theta values.

Examples

Run this code
# NOT RUN {
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