Learn R Programming

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

mice (version 3.14.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

92,351

Version

3.14.0

License

GPL-2 | GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Stef van Buuren

Last Published

November 24th, 2021

Functions in mice (3.14.0)

ampute.continuous

Multivariate amputation based on continuous probability functions
D3

Compare two nested models using D3-statistic
ampute

Generate missing data for simulation purposes
D1

Compare two nested models using D1-statistic
ampute.default.weights

Default weights in ampute
ampute.default.type

Default type in ampute()
ampute.default.patterns

Default patterns in ampute
ampute.default.odds

Default odds in ampute()
ampute.default.freq

Default freq in ampute
D2

Compare two nested models using D2-statistic
anova.mira

Compare several nested models
brandsma

Brandsma school data used Snijders and Bosker (2012)
bwplot.mads

Box-and-whisker plot of amputed and non-amputed data
fix.coef

Fix coefficients and update model
cc

Select complete cases
cbind.mids

Combine mids objects by columns
filter.mids

Subset rows of a mids object
fdgs

Fifth Dutch growth study 2009
is.mads

Check for mads object
is.mids

Check for mids object
is.mipo

Check for mipo object
is.mira

Check for mira object
fico

Fraction of incomplete cases among cases with observed
as.mira

Create a mira object from repeated analyses
as.mids

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

Extracts the completed data from a mids object
cci

Complete case indicator
getqbar

Extract estimate from mipo object
getfit

Extract list of fitted models
mads-class

Multivariate amputed data set (mads)
lm.mids

Linear regression for mids object
appendbreak

Appends specified break to the data
extend.formula

Extends a formula with predictors
extend.formulas

Extends formula's with predictor matrix settings
construct.blocks

Construct blocks from formulas and predictorMatrix
extractBS

Extract broken stick estimates from a lmer object
densityplot.mids

Density plot of observed and imputed data
ampute.mcar

Multivariate amputation under a MCAR mechanism
ampute.discrete

Multivariate amputation based on discrete probability functions
employee

Employee selection data
is.mitml.result

Check for mitml.result object
estimice

Computes least squares parameters
ici

Incomplete case indicator
mammalsleep

Mammal sleep data
leiden85

Leiden 85+ study
ifdo

Conditional imputation helper
as.mitml.result

Converts into a mitml.result object
fdd

SE Fireworks disaster data
matchindex

Find index of matched donor units
make.visitSequence

Creates a visitSequence argument
make.where

Creates a where argument
boys

Growth of Dutch boys
mice.impute.jomoImpute

Multivariate multilevel imputation using jomo
mice.impute.cart

Imputation by classification and regression trees
mice.impute.lasso.select.logreg

Imputation by indirect use of lasso logistic regression
mice.impute.lasso.select.norm

Imputation by indirect use of lasso linear regression
make.post

Creates a post argument
make.predictorMatrix

Creates a predictorMatrix argument
mice.impute.2lonly.mean

Imputation of most likely value within the class
mice.impute.2l.pan

Imputation by a two-level normal model using pan
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.lasso.logreg

Imputation by direct use of lasso logistic regression
ibind

Enlarge number of imputations by combining mids objects
bwplot.mids

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

Select incomplete cases
mice.impute.2l.lmer

Imputation by a two-level normal model using lmer
cbind

Combine R objects by rows and columns
mice.impute.norm

Imputation by Bayesian linear regression
mnar_demo_data

MNAR demo data
name.blocks

Name imputation blocks
mice.impute.norm.boot

Imputation by linear regression, bootstrap method
mids2mplus

Export mids object to Mplus
mids2spss

Export mids object to SPSS
mice.impute.midastouch

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

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

Imputation by linear regression through prediction
mice.impute.mnar.logreg

Imputation under MNAR mechanism by NARFCS
mice.impute.rf

Imputation by random forests
mice.impute.ri

Imputation by the random indicator method for nonignorable data
pool.r.squared

Pools R^2 of m models fitted to multiply-imputed data
pool.scalar

Multiple imputation pooling: univariate version
make.method

Creates a method argument
make.formulas

Creates a formulas argument
flux

Influx and outflux of multivariate missing data patterns
reexports

Objects exported from other packages
rbind.mids

Combine mids objects by rows
mice

mice: Multivariate Imputation by Chained Equations
plot.mids

Plot the trace lines of the MICE algorithm
ncc

Number of complete cases
name.formulas

Name formula list elements
mice.impute.logreg.boot

Imputation by logistic regression using the bootstrap
md.pattern

Missing data pattern
mice.impute.2l.bin

Imputation by a two-level logistic model using glmer
mdc

Graphical parameter for missing data plots
.pmm.match

Finds an imputed value from matches in the predictive metric (deprecated)
mice.impute.2l.norm

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

Imputation by the mean
tidy.mipo

Tidy method to extract results from a `mipo` object
parlmice

Wrapper function that runs MICE in parallel
mice.impute.lda

Imputation by linear discriminant analysis
mice.impute.logreg

Imputation by logistic regression
mice.impute.passive

Passive imputation
mice.impute.panImpute

Impute multilevel missing data using pan
print.mids

Print a mids object
potthoffroy

Potthoff-Roy data
toenail

Toenail data
xyplot.mids

Scatterplot of observed and imputed data
pattern

Datasets with various missing data patterns
windspeed

Subset of Irish wind speed data
walking

Walking disability data
mice.impute.lasso.norm

Imputation by direct use of lasso linear regression
mice.mids

Multivariate Imputation by Chained Equations (Iteration Step)
norm.draw

Draws values of beta and sigma by Bayesian linear regression
nimp

Number of imputations per block
pool

Combine estimates by pooling rules
print.mads

Print a mads object
quickpred

Quick selection of predictors from the data
mice.impute.sample

Imputation by simple random sampling
pool.compare

Compare two nested models fitted to imputed data
selfreport

Self-reported and measured BMI
fluxplot

Fluxplot of the missing data pattern
supports.transparent

Supports semi-transparent foreground colors?
squeeze

Squeeze the imputed values to be within specified boundaries.
tbc

Terneuzen birth cohort
mice.theme

Set the theme for the plotting Trellis functions
mice.impute.quadratic

Imputation of quadratic terms
nhanes

NHANES example - all variables numerical
mids-class

Multiply imputed data set (mids)
nelsonaalen

Cumulative hazard rate or Nelson-Aalen estimator
summary.mira

Summary of a mira object
mice.impute.polyreg

Imputation of unordered data by polytomous regression
stripplot.mids

Stripplot of observed and imputed data
with.mids

Evaluate an expression in multiple imputed datasets
xyplot.mads

Scatterplot of amputed and non-amputed data against weighted sum scores
glance.mipo

Glance method to extract information from a `mipo` object
make.blocks

Creates a blocks argument
mcar

Jamshidian and Jalal's Non-Parametric MCAR Test
make.blots

Creates a blots argument
glm.mids

Generalized linear model for mids object
md.pairs

Missing data pattern by variable pairs
mice.impute.polr

Imputation of ordered data by polytomous regression
mice.impute.pmm

Imputation by predictive mean matching
nic

Number of incomplete cases
popmis

Hox pupil popularity data with missing popularity scores
nhanes2

NHANES example - mixed numerical and discrete variables
mira-class

Multiply imputed repeated analyses (mira)
pops

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

mipo: Multiple imputation pooled object
toenail2

Toenail data
version

Echoes the package version number