Learn R Programming

⚠️There's a newer version (3.17.0) of this package.Take me there.

mice (version 2.25)

Multivariate Imputation by Chained Equations

Description

Multiple imputation using Fully Conditional Specification (FCS) implemented by the MICE algorithm. Each variable has its own imputation model. Built-in imputation models are provided for continuous data (predictive mean matching, normal), binary data (logistic regression), unordered categorical data (polytomous logistic regression) and ordered categorical data (proportional odds). MICE can also impute continuous two-level data (normal model, pan, second-level variables). Passive imputation can be used to maintain consistency between variables. Various diagnostic plots are available to inspect the quality of the imputations.

Copy Link

Version

Install

install.packages('mice')

Monthly Downloads

83,091

Version

2.25

License

GPL-2 | GPL-3

Maintainer

Stef van Buuren

Last Published

November 9th, 2015

Functions in mice (2.25)

mice.impute.norm.predict

Imputation by linear regression, prediction method
mice.mids

Multivariate Imputation by Chained Equations (Iteration Step)
pool

Multiple imputation pooling
as.mids

Converts an multiply imputed dataset (long format) into a mids object
densityplot.mids

Density plot of observed and imputed data
mice.impute.2l.norm

Imputation by a two-level normal model
fluxplot

Fluxplot of the missing data pattern
ccn

Complete cases n
flux

Influx and outflux of multivariate missing data patterns
glm.mids

Generalized linear model for mids object
as.mira

Create a mira object from repeated analyses
mice.impute.lda

Imputation by linear discriminant analysis
cc

Complete cases
mice.impute.quadratic

Imputation of quadratric terms
mice.impute.norm.boot

Imputation by linear regression, bootstrap method
bwplot.mids

Box-and-whisker plot of observed and imputed data
long2mids

Conversion of a imputed data set (long form) to a mids object
md.pairs

Missing data pattern by variable pairs
mice.impute.norm.nob

Imputation by linear regression (non Bayesian)
mice.impute.polyreg

Imputation by polytomous regression - unordered
mice.impute.2l.pan

Imputation by a two-level normal model using pan
fdgs

Fifth Dutch growth study 2009
mice.impute.pmm

Imputation by predictive mean matching
is.mira

Check for mira object
pops

Project on preterm and small for gestational age infants (POPS)
appendbreak

Appends specified break to the data
xyplot.mids

Scatterplot of observed and imputed data
boys

Growth of Dutch boys
cbind.mids

Columnwise combination of a mids object.
nhanes

NHANES example - all variables numerical
fdd

SE Fireworks disaster data
complete

Creates imputed data sets from a mids object
mice

Multivariate Imputation by Chained Equations (MICE)
lm.mids

Linear regression for mids object
mice.impute.cart

Imputation by classification and regression trees
mice.impute.polr

Imputation by polytomous regression - ordered
mice.impute.2lonly.norm

Imputation at level 2 by Bayesian linear regression
mice.impute.logreg.boot

Imputation by logistic regression using the bootstrap
mice.impute.mean

Imputation by the mean
selfreport

Self-reported and measured BMI
cci

Complete case indicator
with.mids

Evaluate an expression in multiple imputed datasets
squeeze

Squeeze the imputed values to be within specified boundaries.
ic

Incomplete cases
mice.theme

Set the theme for the plotting Trellis functions
pool.scalar

Multiple imputation pooling: univariate version
mice.impute.2lonly.mean

Imputation of the mean within the class
mdc

Graphical parameter for missing data plots.
summary.mira

Summary of a mira object
ifdo

Conditional imputation helper
mice.impute.fastpmm

Imputation by fast predictive mean matching
getfit

Extracts fit objects from mira object
ici

Incomplete case indicator
leiden85

Leiden 85+ study
mids2mplus

Export mids object to Mplus
nelsonaalen

Cumulative hazard rate or Nelson-Aalen estimator
ibind

Combine imputations fitted to the same data
mids2spss

Export mids object to SPSS
mice.impute.ri

Imputation by the random indicator method for nonignorable data
icn

Incomplete cases n
mira-class

Multiply imputed repeated analyses (mira)
mice.impute.rf

Imputation by random forests
mipo-class

Multiply imputed pooled analysis (mipo)
md.pattern

Missing data pattern
nhanes2

NHANES example - mixed numerical and discrete variables
pattern

Datasets with various missing data patterns
popmis

Hox pupil popularity data with missing popularity scores
print.mids

Print a mids object
quickpred

Quick selection of predictors from the data
potthoffroy

Potthoff-Roy data
tbc

Terneuzen birth cohort
extractBS

Extract broken stick estimates from a lmer object
is.mipo

Check for mipo object
supports.transparent

Supports semi-transparent foreground colors?
mids-class

Multiply imputed data set (mids)
mammalsleep

Mammal sleep data
mice.impute.2lonly.pmm

Imputation at level 2 by predictive mean matching
pool.compare

Compare two nested models fitted to imputed data
walking

Walking disability data
stripplot.mids

Stripplot of observed and imputed data
plot.mids

Plot the trace lines of the MICE algorithm
is.mids

Check for mids object
mice.impute.passive

Passive imputation
version

Echoes the package version number
windspeed

Subset of Irish wind speed data
norm.draw

Draws values of beta and sigma by Bayesian linear regression
pool.r.squared

Pooling: R squared
mice.impute.logreg

Imputation by logistic regression
mice.impute.norm

Imputation by Bayesian linear regression
mice.impute.sample

Imputation by simple random sampling
fico

Fraction of incomplete cases among cases with observed
rbind.mids

Rowwise combination of a mids object.