lm.mids | R Documentation |
mids
objectApplies lm()
to multiply imputed data set
lm.mids(formula, data, ...)
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 |
data |
An object of type 'mids', which stands for 'multiply imputed data
set', typically created by a call to function |
... |
Additional parameters passed to |
This function is included for backward compatibility with V1.0. The function
is superseded by with.mids
.
An objects of class mira
, which stands for 'multiply imputed
repeated analysis'. This object contains data$m
distinct
lm.objects
, plus some descriptive information.
Stef van Buuren, Karin Groothuis-Oudshoorn, 2000
Van Buuren, S., Groothuis-Oudshoorn, K. (2011). mice
:
Multivariate Imputation by Chained Equations in R
. Journal of
Statistical Software, 45(3), 1-67.
\Sexpr[results=rd]{tools:::Rd_expr_doi("10.18637/jss.v045.i03")}
lm
, mids
, mira
imp <- mice(nhanes)
fit <- lm.mids(bmi ~ hyp + chl, data = imp)
fit
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.