Learn R Programming

tramME (version 1.0.4)

VarCorr.tramME: Variances and correlation matrices of random effects

Description

This function calculates the variances and correlations from varcov.tramME.

Usage

# S3 method for tramME
VarCorr(x, ...)

Value

A list of vectors with variances and correlation matrices corresponding to the various grouping variables.

Arguments

x

A tramME object

...

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.

Examples

Run this code
data("sleepstudy", package = "lme4")
fit <- BoxCoxME(Reaction ~ Days + (Days | Subject), data = sleepstudy)
VarCorr(fit)

Run the code above in your browser using DataLab