Learn R Programming

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

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

License

GPL-2 | GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Stef van Buuren

Last Published

December 13th, 2019

Functions in mice (3.7.0)

ampute.default.freq

Default freq in ampute
ampute.discrete

Multivariate Amputation Based On Discrete Probability Functions
ampute.mcar

Multivariate Amputation In A MCAR Manner
bwplot.mads

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

Brandsma school data used Snijders and Bosker (2012)
as.mids

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

Create a mira object from repeated analyses
cci

Complete case indicator
cbind.mids

Combine mids objects by columns
boys

Growth of Dutch boys
as.mitml.result

Converts into a mitml.result object
construct.blocks

Construct blocks from formulas and predictorMatrix
anova.mira

Compare several nested models
employee

Employee selection data
appendbreak

Appends specified break to the data
bwplot.mids

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

Extracts the completed data from a mids object
densityplot.mids

Density plot of observed and imputed data
ici

Incomplete case indicator
ibind

Enlarge number of imputations by combining mids objects
getfit

Extract list of fitted model
fluxplot

Fluxplot of the missing data pattern
estimice

Computes least squares parameters
extend.formulas

Extends formula's with predictor matrix settings
extend.formula

Extends a formula with predictors
ic

Select incomplete cases
ifdo

Conditional imputation helper
make.formulas

Creates a formulas argument
cc

Select complete cases
fdd

SE Fireworks disaster data
is.mipo

Check for mipo object
extractBS

Extract broken stick estimates from a lmer object
is.mira

Check for mira object
is.mitml.result

Check for mitml.result object
leiden85

Leiden 85+ study
fix.coef

Fix coefficients and update model
flux

Influx and outflux of multivariate missing data patterns
make.visitSequence

Creates a visitSequence argument
fico

Fraction of incomplete cases among cases with observed
is.mads

Check for mads object
lm.mids

Linear regression for mids object
is.mids

Check for mids object
make.method

Creates a method argument
cbind

Combine R Objects by Rows and Columns
fdgs

Fifth Dutch growth study 2009
make.where

Creates a where argument
mads-class

Multivariate Amputed Data Set (mads)
mice

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

Imputation by a two-level normal model using lmer
md.pairs

Missing data pattern by variable pairs
make.predictorMatrix

Creates a predictorMatrix argument
getqbar

Extract estimate from mipo object
make.post

Creates a post argument
glm.mids

Generalized linear model for mids object
mammalsleep

Mammal sleep data
mice.impute.2l.norm

Imputation by a two-level normal model
mice.impute.2l.bin

Imputation by a two-level logistic model using glmer
mice.impute.logreg.boot

Imputation by logistic regression using the bootstrap
make.blocks

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

Imputation of most likely value within the class
mids2mplus

Export mids object to Mplus
mids-class

Multiply imputed data set (mids)
pool

Combine estimates by Rubin's rules
nic

Number of incomplete cases
mice.impute.2l.pan

Imputation by a two-level normal model using pan
mice.impute.norm.boot

Imputation by linear regression, bootstrap method
mice.impute.norm.nob

Imputation by linear regression without parameter uncertainty
nhanes2

NHANES example - mixed numerical and discrete variables
mice.impute.cart

Imputation by classification and regression trees
print.mids

Print a mids object
pool.compare

Compare two nested models fitted to imputed data
potthoffroy

Potthoff-Roy data
mice.impute.mean

Imputation by the mean
mice.impute.polr

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

Multivariate multilevel imputation using jomo
md.pattern

Missing data pattern
mice.impute.polyreg

Imputation of unordered data by polytomous regression
make.blots

Creates a blots argument
mice.mids

Multivariate Imputation by Chained Equations (Iteration Step)
tbc

Terneuzen birth cohort
mice.impute.norm.predict

Imputation by linear regression through prediction
mice.theme

Set the theme for the plotting Trellis functions
mira-class

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

Impute multilevel missing data using pan
mdc

Graphical parameter for missing data plots.
mice.impute.sample

Imputation by simple random sampling
mice.impute.ri

Imputation by the random indicator method for nonignorable data
name.blocks

Name imputation blocks
pattern

Datasets with various missing data patterns
selfreport

Self-reported and measured BMI
rbind.mids

Combine mids objects by rows
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.2lonly.norm

Imputation at level 2 by Bayesian linear regression
mice.impute.passive

Passive imputation
.pmm.match

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

Number of imputations per block
plot.mids

Plot the trace lines of the MICE algorithm
norm.draw

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

Imputation by predictive mean matching
nelsonaalen

Cumulative hazard rate or Nelson-Aalen estimator
mipo

mipo: Multiple imputation pooled object
mids2spss

Export mids object to SPSS
mice.impute.2lonly.pmm

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

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

Imputation by Bayesian linear regression
toenail

Toenail data
mice.impute.quadratic

Imputation of quadratic terms
mice.impute.rf

Imputation by random forests
nhanes

NHANES example - all variables numerical
name.formulas

Name formula list elements
ncc

Number of complete cases
popmis

Hox pupil popularity data with missing popularity scores
pool.r.squared

Pooling: R squared
pool.scalar

Multiple imputation pooling: univariate version
summary.mira

Summary of a mira object
print.mads

Print a mads object
pops

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

Subset of Irish wind speed data
with.mids

Evaluate an expression in multiple imputed datasets
quickpred

Quick selection of predictors from the data
stripplot.mids

Stripplot of observed and imputed data
xyplot.mids

Scatterplot of observed and imputed data
squeeze

Squeeze the imputed values to be within specified boundaries.
xyplot.mads

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

Echoes the package version number
supports.transparent

Supports semi-transparent foreground colors?
walking

Walking disability data
ampute.default.odds

Default odds 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
D3

Compare two nested models using D3-statistic
D1

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

Default weights in ampute
ampute.default.patterns

Default patterns in ampute
D2

Compare two nested models using D2-statistic