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

View source: R/LmME.R

varcov.LmMER Documentation

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 class 'LmME'
varcov(object, as.lm = FALSE, as.theta = FALSE, full = 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.

full

Logical value; if TRUE, return all random effects elements, if FALSE, do not return the random effects parameters of the smooth terms.

...

Optional arguments (unused).

Value

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

Examples

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)

tramME documentation built on July 9, 2023, 7:10 p.m.