mice (version 1.14)

lm.mids: Linear Regression on Multiply Imputed Data

Description

Performs repeated linear regression on multiply imputed data set

Usage

lm.mids(formula, data, weights, subset, na.action, method="qr", model=FALSE, 
        x=FALSE, y=FALSE, contrasts=NULL, ...)

Arguments

formula
a formula object, with the response on the left of a ~ operator, and the terms, separated by + operators, on the right.
data
An object of type 'mids', which stands for 'multiply imputed data set', typically created by function mice().
weights
see lm
subset
see lm
na.action
see lm
method
see lm
model
see lm
x
see lm
y
see lm
contrasts
see lm
...
not used

Value

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

References

Van Buuren, S. & Oudshoorn, C.G.M. (2000). Multivariate Imputation by Chained Equations: MICE V1.0 User's manual. Report PG/VGZ/00.038, TNO Prevention and Health, Leiden.

See Also

lm, mids, mira

Examples

Run this code
data(nhanes)
imp <- mice(nhanes)     # do default multiple imputation on a numeric matrix
fit <- lm.mids(bmi~hyp+chl,data=imp)

Run the code above in your browser using DataLab