Learn R Programming

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

MICE: Multivariate Imputation by Chained Equations

The mice package implements a method to deal with missing data. The package creates multiple imputations (replacement values) for multivariate missing data. The method is based on Fully Conditional Specification, where each incomplete variable is imputed by a separate model. The MICE algorithm can impute mixes of continuous, binary, unordered categorical and ordered categorical data. In addition, MICE can impute continuous two-level data, and maintain consistency between imputations by means of passive imputation. Many diagnostic plots are implemented to inspect the quality of the imputations.

Installation

The mice package can be installed from CRAN as follows:

install.packages("mice")

The latest version is can be installed from GitHub as follows:

install.packages("devtools")
devtools::install_github(repo = "stefvanbuuren/mice")

See MICE: Multivariate Imputation by Chained Equations for more details.

Copy Link

Version

Install

install.packages('mice')

Monthly Downloads

92,351

Version

2.46.0

License

GPL-2 | GPL-3

Maintainer

Stef van Buuren

Last Published

October 24th, 2017

Functions in mice (2.46.0)

ampute.mcar

Multivariate Amputation In A MCAR Manner
appendbreak

Appends specified break to the data
ampute.default.patterns

Default patterns in ampute
ampute.default.type

Default type in ampute()
ampute

Generate Missing Data for Simulation Purposes
ampute.continuous

Multivariate Amputation Based On Continuous Probability Functions
ampute.default.weights

Default weights in ampute
ampute.discrete

Multivariate Amputation Based On Discrete Probability Functions
ampute.default.freq

Default freq in ampute
ampute.default.odds

Default odds in ampute()
complete

Extracts imputed data sets from a mids object
densityplot.mids

Density plot of observed and imputed data
getfit

Extracts fit objects from mira object
glm.mids

Generalized linear model for mids object
boys

Growth of Dutch boys
bwplot.mads

Box-and-whisker plot of amputed and non-amputed data
extractBS

Extract broken stick estimates from a lmer object
fdd

SE Fireworks disaster data
mads-class

Multivariate Amputed Data Set (mads)
cc

Select complete cases
cci

Complete case indicator
flux

Influx and outflux of multivariate missing data patterns
fluxplot

Fluxplot of the missing data pattern
mammalsleep

Mammal sleep data
md.pairs

Missing data pattern by variable pairs
md.pattern

Missing data pattern
mice.impute.norm.nob

Imputation by linear regression without parameter uncertainty
is.mads

Check for mads object
is.mids

Check for mids object
mdc

Graphical parameter for missing data plots.
mice

mice: Multivariate Imputation by Chained Equations
mice.impute.logreg

Imputation by logistic regression
mice.impute.logreg.boot

Imputation by logistic regression using the bootstrap
mice.mids

Multivariate Imputation by Chained Equations (Iteration Step)
mice.theme

Set the theme for the plotting Trellis functions
nelsonaalen

Cumulative hazard rate or Nelson-Aalen estimator
as.mids

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

Create a mira object from repeated analyses
fdgs

Fifth Dutch growth study 2009
nhanes

NHANES example - all variables numerical
pool

Multiple imputation pooling
pool.compare

Compare two nested models fitted to imputed data
potthoffroy

Potthoff-Roy data
is.mipo

Check for mipo object
is.mira

Check for mira object
mice.impute.2l.pan

Imputation by a two-level normal model using pan
mice.impute.2lonly.mean

Imputation of the mean within the class
mice.impute.norm

Imputation by Bayesian linear regression
mice.impute.norm.boot

Imputation by linear regression, bootstrap method
mice.impute.polr

Imputation of ordered data by polytomous regression
print.mids

Print a mids object
xyplot.mids

Scatterplot of observed and imputed data
bwplot.mids

Box-and-whisker plot of observed and imputed data
cbind.mids

Columnwise combination of a mids object.
ibind

Enlarge number of imputations by combining mids objects
ic

Select incomplete cases
ici

Incomplete case indicator
mice.impute.polyreg

Imputation of unordered data by polytomous regression
mids2spss

Export mids object to SPSS
mipo-class

Multiply imputed pooled analysis (mipo)
fico

Fraction of incomplete cases among cases with observed
leiden85

Leiden 85+ study
lm.mids

Linear regression for mids object
mice.impute.2l.lmer

Imputation by a two-level normal model using lmer
pool.r.squared

Pooling: R squared
pool.scalar

Multiple imputation pooling: univariate version
summary.mira

Summary of a mira object
mice.impute.norm.predict

Imputation by linear regression through prediction
mice.impute.ri

Imputation by the random indicator method for nonignorable data
mice.impute.sample

Imputation by simple random sampling
mids-class

Multiply imputed data set (mids)
mids2mplus

Export mids object to Mplus
mice.impute.2l.norm

Imputation by a two-level normal model
mice.impute.cart

Imputation by classification and regression trees
mice.impute.lda

Imputation by linear discriminant analysis
mice.impute.passive

Passive imputation
ifdo

Conditional imputation helper
mice.impute.2lonly.norm

Imputation at level 2 by Bayesian linear regression
mice.impute.2lonly.pmm

Imputation at level 2 by predictive mean matching
mice.impute.mean

Imputation by the mean
popmis

Hox pupil popularity data with missing popularity scores
pops

Project on preterm and small for gestational age infants (POPS)
print.mads

Print a mads object
nhanes2

NHANES example - mixed numerical and discrete variables
nic

Number of incomplete cases
norm.draw

Draws values of beta and sigma by Bayesian linear regression
quickpred

Quick selection of predictors from the data
supports.transparent

Supports semi-transparent foreground colors?
walking

Walking disability data
windspeed

Subset of Irish wind speed data
mice.impute.pmm

Imputation by predictive mean matching
pattern

Datasets with various missing data patterns
rbind.mids

Rowwise combination of a mids object.
selfreport

Self-reported and measured BMI
with.mids

Evaluate an expression in multiple imputed datasets
mice.impute.midastouch

Imputation by predictive mean matching with distance aided donor selection
mice.impute.quadratic

Imputation of quadratric terms
mice.impute.rf

Imputation by random forests
mira-class

Multiply imputed repeated analyses (mira)
ncc

Number of complete cases
xyplot.mads

Scatterplot of amputed and non-amputed data against weighted sum scores
plot.mids

Plot the trace lines of the MICE algorithm
.pmm.match

Finds an imputed value from matches in the predictive metric (deprecated)
squeeze

Squeeze the imputed values to be within specified boundaries.
stripplot.mids

Stripplot of observed and imputed data
tbc

Terneuzen birth cohort
version

Echoes the package version number