Learn R Programming

tramME (version 1.0.7)

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

Description

Returns the covariance matrix of the random effects as saved in the tramME object. The returned values correspond to the transformation model parametrization.

Usage

# S3 method for tramME
varcov(object, as.theta = FALSE, full = FALSE, ...)

Value

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

Arguments

object

A tramME object.

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).

Examples

Run this code
data("sleepstudy", package = "lme4")
fit <- LmME(Reaction ~ Days + (Days | Subject), data = sleepstudy)
varcov(fit)
varcov(fit, as.theta = TRUE)

Run the code above in your browser using DataLab