ranef.LmME: Extract the conditional modes of random effects of an LmME...

View source: R/LmME.R

ranef.LmMER Documentation

Extract the conditional modes of random effects of an LmME model

Description

The condVar option is not implemented for ranef.LmME. Setting raw=TURE will return the raw random effects estimates from the transformation model parametrization.

Usage

## S3 method for class 'LmME'
ranef(object, as.lm = FALSE, ...)

Arguments

object

A fitted LmME object.

as.lm

If TRUE, return the transformed conditional modes as in a normal linear mixed effects model.

...

Optional parameters passed to ranef.tramME.

Value

A numeric vector or a ranef.tramME object depending on the inputs.

Examples

data("sleepstudy", package = "lme4")
fit <- LmME(Reaction ~ Days + (Days | Subject), data = sleepstudy)
ranef(fit, raw = TRUE) ## transformation model parametrization!
ranef(fit, as.lm = TRUE)

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