Learn R Programming

mice (version 2.7)

lm.mids: Linear Regression on Multiply Imputed Data

Description

Applies lm() to multiply imputed data set

Usage

## S3 method for class 'mids':
lm(formula, data, \dots)

Arguments

formula
a formula object, with the response on the left of a ~ operator, and the terms, separated by + operators, on the right. See the documentation of lm and formula
data
An object of type 'mids', which stands for 'multiply imputed data set', typically created by a call to function mice().
...
Additional parameters passed to lm

Value

  • An objects of class mira, which stands for 'multiply imputed repeated analysis'. This object contains data$m distinct lm.objects, plus some descriptive information.

Details

This function is included for backward compatibility with V1.0. The function is superseeded by with.mids.

References

Van Buuren, S., Groothuis-Oudshoorn, C.G.M. (2000). Multivariate Imputation by Chained Equations: MICE V1.0 User's manual. Leiden: TNO Quality of Life. http://www.stefvanbuuren.nl/publications/MICE V1.0 Manual TNO00038 2000.pdf

See Also

lm, mids, mira

Examples

Run this code
imp <- mice(nhanes)
fit <- lm.mids(bmi~hyp+chl,data=imp)

Run the code above in your browser using DataLab