Learn R Programming

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

mice (version 3.5.0)

Multivariate Imputation by Chained Equations

Description

Multiple imputation using Fully Conditional Specification (FCS) implemented by the MICE algorithm as described in Van Buuren and Groothuis-Oudshoorn (2011) . 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

3.5.0

License

GPL-2 | GPL-3

Maintainer

Stef van Buuren

Last Published

May 13th, 2019

Functions in mice (3.5.0)

D1

Compare two nested models using D1-statistic
anova.mira

Compare several nested models
appendbreak

Appends specified break to the data
cci

Complete case indicator
ampute.continuous

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

Default freq in ampute
as.mids

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

Extracts the completed data from a mids object
fluxplot

Fluxplot of the missing data pattern
getfit

Extract list of fitted model
as.mira

Create a mira object from repeated analyses
is.mads

Check for mads object
is.mids

Check for mids object
is.mitml.result

Check for mitml.result object
leiden85

Leiden 85+ study
mice.impute.logreg.boot

Imputation by logistic regression using the bootstrap
construct.blocks

Construct blocks from formulas and predictorMatrix
mice.impute.mean

Imputation by the mean
mice.impute.polr

Imputation of ordered data by polytomous regression
densityplot.mids

Density plot of observed and imputed data
extend.formula

Extends a formula with predictors
mice.impute.polyreg

Imputation of unordered data by polytomous regression
extend.formulas

Extends formula's with predictor matrix settings
make.formulas

Creates a formulas argument
make.method

Creates a method argument
mids2spss

Export mids object to SPSS
mice.impute.2l.lmer

Imputation by a two-level normal model using lmer
mice.impute.jomoImpute

Multivariate multilevel imputation using jomo
mice.impute.cart

Imputation by classification and regression trees
mice.impute.2l.norm

Imputation by a two-level normal model
ampute.default.odds

Default odds in ampute()
mice.impute.norm.predict

Imputation by linear regression through prediction
ampute.default.patterns

Default patterns in ampute
mice.impute.panImpute

Impute multilevel missing data using pan
mipo

mipo: Multiple imputation pooled object
mice.impute.quadratic

Imputation of quadratic terms
brandsma

Brandsma school data used Snijders and Bosker (2012)
mice.impute.rf

Imputation by random forests
bwplot.mads

Box-and-whisker plot of amputed and non-amputed data
mira-class

Multiply imputed repeated analyses (mira)
popmis

Hox pupil popularity data with missing popularity scores
pops

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

Employee selection data
estimice

Computes least squares parameters
print.mads

Print a mads object
name.blocks

Name imputation blocks
extractBS

Extract broken stick estimates from a lmer object
pool

Combine estimates by Rubin's rules
fdd

SE Fireworks disaster data
quickpred

Quick selection of predictors from the data
ampute.discrete

Multivariate Amputation Based On Discrete Probability Functions
pool.compare

Compare two nested models fitted to imputed data
potthoffroy

Potthoff-Roy data
getqbar

Extract estimate from mipo object
glm.mids

Generalized linear model for mids object
print.mids

Print a mids object
D3

Compare two nested models using D3-statistic
tbc

Terneuzen birth cohort
make.blocks

Creates a blocks argument
ampute.default.type

Default type in ampute()
make.blots

Creates a blots argument
ampute

Generate Missing Data for Simulation Purposes
version

Echoes the package version number
ampute.default.weights

Default weights in ampute
ampute.mcar

Multivariate Amputation In A MCAR Manner
as.mitml.result

Converts into a mitml.result object
bwplot.mids

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

Growth of Dutch boys
ibind

Enlarge number of imputations by combining mids objects
cbind.mids

Combine mids objects by columns
cc

Select complete cases
ic

Select incomplete cases
cbind

Combine R Objects by Rows and Columns
fico

Fraction of incomplete cases among cases with observed
fdgs

Fifth Dutch growth study 2009
fix.coef

Fix coefficients and update model
mads-class

Multivariate Amputed Data Set (mads)
lm.mids

Linear regression for mids object
flux

Influx and outflux of multivariate missing data patterns
is.mipo

Check for mipo object
make.visitSequence

Creates a visitSequence argument
mice

mice: Multivariate Imputation by Chained Equations
is.mira

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

Imputation by a two-level logistic model using glmer
md.pattern

Missing data pattern
ici

Incomplete case indicator
mdc

Graphical parameter for missing data plots.
ifdo

Conditional imputation helper
make.where

Creates a where argument
make.post

Creates a post argument
make.predictorMatrix

Creates a predictorMatrix argument
mice.impute.passive

Passive imputation
md.pairs

Missing data pattern by variable pairs
mammalsleep

Mammal sleep data
mice.impute.pmm

Imputation by predictive mean matching
mice.impute.2lonly.pmm

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

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

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

Imputation by linear discriminant analysis
mice.impute.logreg

Imputation by logistic regression
mice.impute.2l.pan

Imputation by a two-level normal model using pan
mice.mids

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

Set the theme for the plotting Trellis functions
nimp

Number of imputations per block
mice.impute.2lonly.mean

Imputation of the mean within the class
mids2mplus

Export mids object to Mplus
mids-class

Multiply imputed data set (mids)
mice.impute.midastouch

Imputation by predictive mean matching with distance aided donor selection
norm.draw

Draws values of beta and sigma by Bayesian linear regression
plot.mids

Plot the trace lines of the MICE algorithm
name.formulas

Name formula list elements
nelsonaalen

Cumulative hazard rate or Nelson-Aalen estimator
mice.impute.norm.nob

Imputation by linear regression without parameter uncertainty
mice.impute.norm

Imputation by Bayesian linear regression
mice.impute.ri

Imputation by the random indicator method for nonignorable data
.pmm.match

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

NHANES example - all variables numerical
summary.mira

Summary of a mira object
pool.scalar

Multiple imputation pooling: univariate version
pool.r.squared

Pooling: R squared
supports.transparent

Supports semi-transparent foreground colors?
mice.impute.sample

Imputation by simple random sampling
ncc

Number of complete cases
nhanes2

NHANES example - mixed numerical and discrete variables
parlmice

Wrapper function that runs MICE in parallel
nic

Number of incomplete cases
pattern

Datasets with various missing data patterns
rbind.mids

Combine mids objects by rows
selfreport

Self-reported and measured BMI
with.mids

Evaluate an expression in multiple imputed datasets
xyplot.mids

Scatterplot of observed and imputed data
xyplot.mads

Scatterplot of amputed and non-amputed data against weighted sum scores
squeeze

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

Stripplot of observed and imputed data
walking

Walking disability data
windspeed

Subset of Irish wind speed data
D2

Compare two nested models using D2-statistic