glm.mids | R Documentation |
mids
objectApplies glm()
to a multiply imputed data set
glm.mids(formula, family = gaussian, data, ...)
formula |
a formula expression as for other regression models, of the
form response ~ predictors. See the documentation of |
family |
The family of the glm model |
data |
An object of type |
... |
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
glm.objects
, plus some descriptive information.
Stef van Buuren, Karin Groothuis-Oudshoorn, 2000
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.
with.mids
, glm
, mids
,
mira
imp <- mice(nhanes)
# logistic regression on the imputed data
fit <- glm.mids((hyp == 2) ~ bmi + chl, data = imp, family = binomial)
fit
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.