Learn R Programming

tramME (version 0.0.1)

coef.LmME: Extract the coefficients of the fixed effects terms of an LmME model.

Description

Extract the coefficients of the fixed effects terms of an LmME model.

Usage

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

Arguments

object

An LmME object (fitted or unfitted).

as.lm

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

...

optional parameters passed to coef.tramME

Value

A numeric vector of the transformed coefficients.

Examples

Run this code
# NOT RUN {
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