Learn R Programming

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

mice (version 3.10.0.1)

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

84,777

Version

3.10.0.1

License

GPL-2 | GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Stef van Buuren

Last Published

August 2nd, 2020

Functions in mice (3.10.0.1)

D2

Compare two nested models using D2-statistic
ampute.default.freq

Default freq in ampute
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.patterns

Default patterns in ampute
ampute.continuous

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

Default type in ampute()
ampute.default.odds

Default odds in ampute()
ampute.default.weights

Default weights in ampute
as.mitml.result

Converts into a mitml.result object
fluxplot

Fluxplot of the missing data pattern
ampute.mcar

Multivariate Amputation In A MCAR Manner
ampute.discrete

Multivariate Amputation Based On Discrete Probability Functions
getfit

Extract list of fitted model
cci

Complete case indicator
complete.mids

Extracts the completed data from a mids object
bwplot.mads

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

Employee selection data
brandsma

Brandsma school data used Snijders and Bosker (2012)
anova.mira

Compare several nested models
getqbar

Extract estimate from mipo object
estimice

Computes least squares parameters
fico

Fraction of incomplete cases among cases with observed
fdgs

Fifth Dutch growth study 2009
appendbreak

Appends specified break to the data
construct.blocks

Construct blocks from formulas and predictorMatrix
as.mids

Converts an multiply imputed dataset (long format) into a mids object
fix.coef

Fix coefficients and update model
bwplot.mids

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

Growth of Dutch boys
densityplot.mids

Density plot of observed and imputed data
flux

Influx and outflux of multivariate missing data patterns
as.mira

Create a mira object from repeated analyses
cbind.mids

Combine mids objects by columns
ici

Incomplete case indicator
ic

Select incomplete cases
cbind

Combine R Objects by Rows and Columns
glm.mids

Generalized linear model for mids object
make.blots

Creates a blots argument
glance.mipo

Glance method to extract information from a `mipo` object
extractBS

Extract broken stick estimates from a lmer object
fdd

SE Fireworks disaster data
cc

Select complete cases
extend.formula

Extends a formula with predictors
ibind

Enlarge number of imputations by combining mids objects
ifdo

Conditional imputation helper
is.mads

Check for mads object
is.mira

Check for mira object
make.method

Creates a method argument
is.mids

Check for mids object
extend.formulas

Extends formula's with predictor matrix settings
is.mipo

Check for mipo object
make.post

Creates a post argument
lm.mids

Linear regression for mids object
leiden85

Leiden 85+ study
mads-class

Multivariate Amputed Data Set (mads)
is.mitml.result

Check for mitml.result object
make.blocks

Creates a blocks argument
make.where

Creates a where argument
mice.impute.2l.bin

Imputation by a two-level logistic model using glmer
mammalsleep

Mammal sleep data
mdc

Graphical parameter for missing data plots.
make.formulas

Creates a formulas argument
mice.impute.2l.norm

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

Imputation by a two-level normal model using pan
make.predictorMatrix

Creates a predictorMatrix argument
md.pairs

Missing data pattern by variable pairs
mice

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

Imputation of most likely value within the class
make.visitSequence

Creates a visitSequence argument
mice.impute.2lonly.norm

Imputation at level 2 by Bayesian linear regression
md.pattern

Missing data pattern
mice.impute.2lonly.pmm

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

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

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

Imputation by classification and regression trees
mids-class

Multiply imputed data set (mids)
mice.impute.mnar.logreg

Imputation under MNAR mechanism by NARFCS
mice.impute.midastouch

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

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

Imputation by the mean
mice.impute.norm

Imputation by Bayesian linear regression
mids2mplus

Export mids object to Mplus
mice.impute.polyreg

Imputation of unordered data by polytomous regression
mnar_demo_data

MNAR demo data
mice.impute.polr

Imputation of ordered data by polytomous regression
mira-class

Multiply imputed repeated analyses (mira)
mice.impute.norm.nob

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

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

Multivariate multilevel imputation using jomo
mice.impute.pmm

Imputation by predictive mean matching
mice.impute.passive

Passive imputation
norm.draw

Draws values of beta and sigma by Bayesian linear regression
mipo

mipo: Multiple imputation pooled object
mids2spss

Export mids object to SPSS
mice.impute.lda

Imputation by linear discriminant analysis
pool.r.squared

Pooling: R squared
pool.compare

Compare two nested models fitted to imputed data
selfreport

Self-reported and measured BMI
reexports

Objects exported from other packages
parlmice

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

Imputation by the random indicator method for nonignorable data
nhanes

NHANES example - all variables numerical
mice.impute.quadratic

Imputation of quadratic terms
mice.impute.rf

Imputation by random forests
mice.mids

Multivariate Imputation by Chained Equations (Iteration Step)
nhanes2

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

Imputation by simple random sampling
plot.mids

Plot the trace lines of the MICE algorithm
pattern

Datasets with various missing data patterns
quickpred

Quick selection of predictors from the data
rbind.mids

Combine mids objects by rows
print.mids

Print a mids object
version

Echoes the package version number
mice.theme

Set the theme for the plotting Trellis functions
mice.impute.norm.predict

Imputation by linear regression through prediction
print.mads

Print a mads object
toenail

Toenail data
toenail2

Toenail data
ncc

Number of complete cases
nelsonaalen

Cumulative hazard rate or Nelson-Aalen estimator
nic

Number of incomplete cases
mice.impute.panImpute

Impute multilevel missing data using pan
summary.mira

Summary of a mira object
walking

Walking disability data
supports.transparent

Supports semi-transparent foreground colors?
nimp

Number of imputations per block
name.blocks

Name imputation blocks
name.formulas

Name formula list elements
.pmm.match

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

Potthoff-Roy data
pops

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

Combine estimates by Rubin's rules
pool.scalar

Multiple imputation pooling: univariate version
popmis

Hox pupil popularity data with missing popularity scores
tidy.mipo

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

Subset of Irish wind speed data
tbc

Terneuzen birth cohort
with.mids

Evaluate an expression in multiple imputed datasets
squeeze

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

Stripplot of observed and imputed data
xyplot.mids

Scatterplot of observed and imputed data
xyplot.mads

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