R: Extract list of fitted model

getfit {mice} | R Documentation

## Extract list of fitted model

### Description

`getfit` returns the list of objects containing the repeated analysis results, or optionally, one of these fit objects.

### Usage

    getfit(x, i = -1L, simplify = FALSE)

### Arguments

`x` | An object of class `mira` or `mitml.result`, typically produced by a call to `with()`.
`i` | An integer between 1 and `x$m` signaling the number of the repeated analysis. The default `i= -1` return a list with all analyses.
`simplify` | Should the return value be unlisted?

### Value

If `i = -1` an object of class `mitml.result` containing all analyses, otherwise it returns the fitted object of the i'th repeated analysis.

### Author(s)

Stef van Buuren, March 2012.

### See Also

`mira`, `with.mids`

### Examples

    imp <- mice(nhanes)
    fit <- with(imp, lm(bmi~chl+hyp))
    getfit(fit)
    getfit(fit, 2)

[Package mice version 3.8.0 Index]