glance.mira: Glance a multiple imputation 'mice' pooled object

glance.miraR Documentation

Glance a multiple imputation mice pooled object

Description

Note that the mice authors prefer to tidy mipo rather than mira objects and have now included tidy.mipo and glance.mipo into their package. The mira functions here are mostly retained for compatibility with my earlier code.

Usage

## S3 method for class 'mira'
glance(x, adj_R2 = TRUE, ...)

Arguments

x

An object with multiply-imputed models from mice (class: mira)

adj_R2

Should an adjusted R2 be returned as well? Only applicable if x contains lm-models

...

extra arguments (not used)

Value

a tibble with one row

Note

If x contains lm models, R2 is included in the output

Examples

## Not run: 
library(mice)
data <- airquality
data[4:10, 3] <- rep(NA, 7)
data[1:5, 4] <- NA
tmp <- mice(data, m = 5, seed = 500, printFlag = FALSE)
mod <- with(tmp, lm(Ozone ~ Solar.R + Wind))
glance(mod)

## End(Not run)

LukasWallrich/timesaveR documentation built on Nov. 29, 2024, 4:47 a.m.