Learn R Programming

nlme (version 3.1-31)

lmList: List of lm Objects with a Common Model

Description

Data is partitioned according to the levels of the grouping factor g and individual lm fits are obtained for each data partition, using the model defined in object.

Usage

lmList(object, data, level, subset, na.action, pool)
## S3 method for class 'lmList':
update(object, formula, data, level, subset, na.action,
pool, \dots)

Arguments

Value

a list of lm objects with as many components as the number of groups defined by the grouping factor. Generic functions such as coef, fixed.effects, lme, pairs, plot, predict, random.effects, summary, and update have methods that can be applied to an lmList object.

See Also

lm, lme.lmList.

Examples

Run this code
data(Orthodont)
fm1 <- lmList(distance ~ age | Subject, Orthodont)
summary(fm1)

Run the code above in your browser using DataLab