Learn R Programming

tramME (version 1.0.7)

coef.LmME: Extract the coefficients of an LmME model

Description

Extracts the fixed effects coefficents (default behavior), the baseline parameters or all (baseline, fixed and random) coefficients of the model.

Usage

# S3 method for LmME
coef(object, as.lm = FALSE, fixed = TRUE, ...)

Value

A numeric vector of the transformed coefficients.

Arguments

object

An LmME object.

as.lm

If TRUE, return the transformed coefficients as in a lmerMod object.

fixed

If TRUE, also include the fixed parameters.

...

Optional arguments passed to coef.tramME.

Details

See also the documentation of coef.tramME.

Examples

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

Run the code above in your browser using DataLab