Learn R Programming

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

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

65,189

Version

3.12.0

License

GPL-2 | GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Stef van Buuren

Last Published

November 14th, 2020

Functions in mice (3.12.0)

D2

Compare two nested models using D2-statistic
as.mitml.result

Converts into a mitml.result object
ampute.default.type

Default type in ampute()
appendbreak

Appends specified break to the data
estimice

Computes least squares parameters
anova.mira

Compare several nested models
ampute.default.odds

Default odds in ampute()
extend.formula

Extends a formula with predictors
employee

Employee selection data
cbind

Combine R objects by rows and columns
boys

Growth of Dutch boys
flux

Influx and outflux of multivariate missing data patterns
extend.formulas

Extends formula's with predictor matrix settings
ifdo

Conditional imputation helper
make.blocks

Creates a blocks argument
ici

Incomplete case indicator
cbind.mids

Combine mids objects by columns
fluxplot

Fluxplot of the missing data pattern
ampute.default.patterns

Default patterns in ampute
make.blots

Creates a blots argument
fico

Fraction of incomplete cases among cases with observed
cc

Select complete cases
fdgs

Fifth Dutch growth study 2009
ampute.continuous

Multivariate amputation based on continuous probability functions
filter.mids

Subset rows of a mids object
glance.mipo

Glance method to extract information from a `mipo` object
is.mira

Check for mira object
is.mipo

Check for mipo object
make.post

Creates a post argument
glm.mids

Generalized linear model for mids object
as.mira

Create a mira object from repeated analyses
ampute.default.weights

Default weights in ampute
as.mids

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

mice: Multivariate Imputation by Chained Equations
mice.impute.2l.norm

Imputation by a two-level normal model
mdc

Graphical parameter for missing data plots
cci

Complete case indicator
mice.impute.2l.pan

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

Extracts the completed data from a mids object
make.predictorMatrix

Creates a predictorMatrix argument
ampute.default.freq

Default freq in ampute
brandsma

Brandsma school data used Snijders and Bosker (2012)
fix.coef

Fix coefficients and update model
is.mads

Check for mads object
make.visitSequence

Creates a visitSequence argument
mice.impute.jomoImpute

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

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

Imputation by linear discriminant analysis
bwplot.mads

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

Enlarge number of imputations by combining mids objects
make.where

Creates a where argument
ic

Select incomplete cases
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
make.formulas

Creates a formulas argument
make.method

Creates a method argument
md.pairs

Missing data pattern by variable pairs
md.pattern

Missing data pattern
mice.impute.2l.bin

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

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

Imputation of most likely value within the class
fdd

SE Fireworks disaster data
mice.impute.logreg.boot

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

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

Imputation by linear regression through prediction
mice.impute.logreg

Imputation by logistic regression
getqbar

Extract estimate from mipo object
getfit

Extract list of fitted models
mice.impute.sample

Imputation by simple random sampling
mice.impute.panImpute

Impute multilevel missing data using pan
mids-class

Multiply imputed data set (mids)
mice.impute.norm.nob

Imputation by linear regression without parameter uncertainty
mids2mplus

Export mids object to Mplus
mice.impute.quadratic

Imputation of quadratic terms
mice.impute.rf

Imputation by random forests
mice.impute.2l.lmer

Imputation by a two-level normal model using lmer
is.mids

Check for mids object
matchindex

Find index of matched donor units
is.mitml.result

Check for mitml.result object
mids2spss

Export mids object to SPSS
mammalsleep

Mammal sleep data
leiden85

Leiden 85+ study
mipo

mipo: Multiple imputation pooled object
name.blocks

Name imputation blocks
mice.impute.cart

Imputation by classification and regression trees
lm.mids

Linear regression for mids object
mice.impute.2lonly.pmm

Imputation at level 2 by predictive mean matching
norm.draw

Draws values of beta and sigma by Bayesian linear regression
parlmice

Wrapper function that runs MICE in parallel
pattern

Datasets with various missing data patterns
mice.impute.norm

Imputation by Bayesian linear regression
mice.impute.mnar.logreg

Imputation under MNAR mechanism by NARFCS
mads-class

Multivariate amputed data set (mads)
mice.impute.mean

Imputation by the mean
tbc

Terneuzen birth cohort
mice.impute.midastouch

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

Passive imputation
mira-class

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

Imputation by predictive mean matching
plot.mids

Plot the trace lines of the MICE algorithm
name.formulas

Name formula list elements
windspeed

Subset of Irish wind speed data
mice.impute.polr

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

Imputation of unordered data by polytomous regression
tidy.mipo

Tidy method to extract results from a `mipo` object
mice.mids

Multivariate Imputation by Chained Equations (Iteration Step)
toenail2

Toenail data
ncc

Number of complete cases
pool.r.squared

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

Compare two nested models fitted to imputed data
toenail

Toenail data
mnar_demo_data

MNAR demo data
with.mids

Evaluate an expression in multiple imputed datasets
nic

Number of incomplete cases
pool.scalar

Multiple imputation pooling: univariate version
mice.theme

Set the theme for the plotting Trellis functions
nelsonaalen

Cumulative hazard rate or Nelson-Aalen estimator
popmis

Hox pupil popularity data with missing popularity scores
.pmm.match

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

Number of imputations per block
nhanes

NHANES example - all variables numerical
print.mids

Print a mids object
pool

Combine estimates by Rubin's rules
print.mads

Print a mads object
quickpred

Quick selection of predictors from the data
potthoffroy

Potthoff-Roy data
reexports

Objects exported from other packages
selfreport

Self-reported and measured BMI
pops

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

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

Combine mids objects by rows
version

Echoes the package version number
nhanes2

NHANES example - mixed numerical and discrete variables
stripplot.mids

Stripplot of observed and imputed data
xyplot.mads

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

Walking disability data
summary.mira

Summary of a mira object
supports.transparent

Supports semi-transparent foreground colors?
xyplot.mids

Scatterplot of observed and imputed data
bwplot.mids

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

Compare two nested models using D3-statistic
ampute

Generate missing data for simulation purposes
D1

Compare two nested models using D1-statistic
ampute.discrete

Multivariate amputation based on discrete probability functions
ampute.mcar

Multivariate amputation under a MCAR mechanism