getfit {mice} | R Documentation |
mira
objectgetfit
returns the list of objects containing the repeated analysis
results, or optionally, one of these fit objects.
getfit(x, i = -1, simplify = FALSE)
x |
An object of class |
i |
An integer between 1 and |
simplify |
Should the return value be unlisted? |
This function is shorthand notation for x$analyses
and
x$analyses[[i]].
If i = -1
an object containing all analyses, otherwise it
returns the fittd object of the i'th repeated analysis.
Stef van Buuren, March 2012.
imp <- mice(nhanes) fit <- with(imp, lm(bmi~chl+hyp)) getfit(fit) getfit(fit, 2)