Learn R Programming

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

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

63,066

Version

3.1.0

License

GPL-2 | GPL-3

Maintainer

Stef van Buuren

Last Published

June 20th, 2018

Functions in mice (3.1.0)

D1

Compare two nested models using D1-statistic
D2

Compare two nested models using D2-statistic
brandsma

Brandsma school data used Snijders and Bosker (2012)
ampute.default.patterns

Default patterns in ampute
boys

Growth of Dutch boys
ampute.default.odds

Default odds in ampute()
cci

Complete case indicator
as.mitml.result

Converts into a mitml.result object
bwplot.mads

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

Fix coefficients and update model
complete

Extracts the completed data from a mids object
bwplot.mids

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

Influx and outflux of multivariate missing data patterns
cbind

Combine R Objects by Rows and Columns
fdgs

Fifth Dutch growth study 2009
ibind

Enlarge number of imputations by combining mids objects
ic

Select incomplete cases
lm.mids

Linear regression for mids object
mads-class

Multivariate Amputed Data Set (mads)
make.visitSequence

Creates a visitSequence argument
fico

Fraction of incomplete cases among cases with observed
getqbar

Extract estimate from mipo object
glm.mids

Generalized linear model for mids object
make.formulas

Creates a formulas argument
make.where

Creates a where argument
make.method

Creates a method argument
mice.impute.2l.pan

Imputation by a two-level normal model using pan
mice

mice: Multivariate Imputation by Chained Equations
mice.impute.2lonly.mean

Imputation of the mean within the class
ampute.default.type

Default type in ampute()
ampute.default.weights

Default weights in ampute
as.mids

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

Create a mira object from repeated analyses
D3

Compare two nested models using D3-statistic
extractBS

Extract broken stick estimates from a lmer object
ampute.mcar

Multivariate Amputation In A MCAR Manner
ampute

Generate Missing Data for Simulation Purposes
employee

Employee selection data
estimice

Computes least squares parameters
fdd

SE Fireworks disaster data
ici

Incomplete case indicator
ampute.discrete

Multivariate Amputation Based On Discrete Probability Functions
ifdo

Conditional imputation helper
mice.impute.2l.bin

Imputation by a two-level logistic model using glmer
mice.impute.norm.predict

Imputation by linear regression through prediction
construct.blocks

Construct blocks from formulas and predictorMatrix
mice.impute.panImpute

Impute multilevel missing data using pan
make.blots

Creates a blots argument
make.blocks

Creates a blocks argument
mice.mids

Multivariate Imputation by Chained Equations (Iteration Step)
mice.impute.mean

Imputation by the mean
mice.impute.passive

Passive imputation
fluxplot

Fluxplot of the missing data pattern
densityplot.mids

Density plot of observed and imputed data
mice.theme

Set the theme for the plotting Trellis functions
getfit

Extract list of fitted model
mids-class

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

Imputation by predictive mean matching
mids2mplus

Export mids object to Mplus
nimp

Number of imputations per block
mice.impute.logreg.boot

Imputation by logistic regression using the bootstrap
ncc

Number of complete cases
name.formulas

Name formula list elements
popmis

Hox pupil popularity data with missing popularity scores
md.pattern

Missing data pattern
is.mipo

Check for mipo object
is.mira

Check for mira object
mdc

Graphical parameter for missing data plots.
pops

Project on preterm and small for gestational age infants (POPS)
is.mitml.result

Check for mitml.result object
rbind.mids

Combine mids objects by rows
leiden85

Leiden 85+ study
mammalsleep

Mammal sleep data
selfreport

Self-reported and measured BMI
version

Echoes the package version number
md.pairs

Missing data pattern by variable pairs
mice.impute.lda

Imputation by linear discriminant analysis
tbc

Terneuzen birth cohort
norm.draw

Draws values of beta and sigma by Bayesian linear regression
mice.impute.logreg

Imputation by logistic regression
mice.impute.norm.boot

Imputation by linear regression, bootstrap method
pool.r.squared

Pooling: R squared
pool.scalar

Multiple imputation pooling: univariate version
mice.impute.cart

Imputation by classification and regression trees
summary.mira

Summary of a mira object
mice.impute.jomoImpute

Multivariate multilevel imputation using jomo
mice.impute.norm.nob

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

Imputation of ordered data by polytomous regression
supports.transparent

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

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

Imputation of unordered data by polytomous regression
mids2spss

Export mids object to SPSS
mice.impute.sample

Imputation by simple random sampling
nelsonaalen

Cumulative hazard rate or Nelson-Aalen estimator
ampute.continuous

Multivariate Amputation Based On Continuous Probability Functions
mipo

mipo: Multiple imputation pooled object
mira-class

Multiply imputed repeated analyses (mira)
nhanes

NHANES example - all variables numerical
pool

Combine estimates by Rubin's rules
pool.compare

Compare two nested models fitted to imputed data
ampute.default.freq

Default freq in ampute
name.blocks

Name imputation blocks
anova.mira

Compare several nested models
squeeze

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

Plot the trace lines of the MICE algorithm
appendbreak

Appends specified break to the data
.pmm.match

Finds an imputed value from matches in the predictive metric (deprecated)
cbind.mids

Combine mids objects by columns
xyplot.mids

Scatterplot of observed and imputed data
stripplot.mids

Stripplot of observed and imputed data
print.mads

Print a mads object
quickpred

Quick selection of predictors from the data
xyplot.mads

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

Evaluate an expression in multiple imputed datasets
cc

Select complete cases
extend.formula

Extends a formula with predictors
is.mids

Check for mids object
is.mads

Check for mads object
extend.formulas

Extends formula's with predictor matrix settings
make.post

Creates a post argument
make.predictorMatrix

Creates a predictorMatrix argument
mice.impute.2l.lmer

Imputation by a two-level normal model using lmer
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.2l.norm

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

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

Imputation by Bayesian linear regression
mice.impute.quadratic

Imputation of quadratic terms
mice.impute.rf

Imputation by random forests
nic

Number of incomplete cases
nhanes2

NHANES example - mixed numerical and discrete variables
parlmice

Wrapper function that runs MICE in parallel
pattern

Datasets with various missing data patterns
print.mids

Print a mids object
walking

Walking disability data
potthoffroy

Potthoff-Roy data
windspeed

Subset of Irish wind speed data