Learn R Programming

VIM (version 7.3.0)

Visualization and Imputation of Missing Values

Description

Provides methods for imputation and visualization of missing values. It includes graphical tools to explore the amount, structure and patterns of missing and/or imputed values, supporting exploratory data analysis and helping to investigate potential missingness mechanisms (details in Alfons, Templ and Filzmoser, ). The quality of imputations can be assessed visually using a wide range of univariate, bivariate and multivariate plots. The package further provides several imputation methods, including efficient implementations of k-nearest neighbour and hot-deck imputation (Kowarik and Templ 2013, ), iterative robust model-based multiple imputation (Templ 2011, ; Templ 2023, ), and machine learning–based approaches such as robust GAM-based multiple imputation (Templ 2024, ) as well as random forest and gradient boosting (XGBoost) imputation (Niederhametner et al., ). General background and practical guidance on imputation are provided in the Springer book by Templ (2023) .

Copy Link

Version

Install

install.packages('VIM')

Monthly Downloads

10,747

Version

7.3.0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Matthias Templ

Last Published

September 2nd, 2026

Functions in VIM (7.3.0)

cellWeights

Compute per-cell contamination weights
collisions

Subset of the collision data
cellWeightsMCD

Compute per-cell weights using MCD-based conditional residuals
build_gam_formula

Build a GAM formula with automatic smooth terms
colormapMiss

Colored map with information about missing/imputed values
colSequence

HCL and RGB color sequences
cellWeightsFromResiduals

Compute cell weights from regression residuals
chorizonDL

C-horizon of the Kola data with missing values
colic

Colic horse data set
cellIRWLS

Cell-weighted Iteratively Reweighted Least Squares
complete_model_info

Complete model diagnostics from learner predictions when the raw model does not expose them directly
gapMiss

Missing value gap statistics
countInf

Count number of infinite or missing values
food

Food consumption
diabetes

Synthetic Pima Indians Diabetes Data
.weighted_qr_solve

QR-based weighted least squares with cell-derived row weights
gowerD

Computes the extended Gower distance of two data sets
imputeCellM

Cellwise M-estimation imputation
extract_model_info

Extract model diagnostics for bootstrap strategies
evaluation

Error performance measures
huber_weight

Huber weight function
growdotMiss

Growing dot map with information about missing/imputed values
.robust_scale

Robust scale estimate via MAD
.apply_weight_fun

Apply a weight function to standardized values
imputeCellMCD

Cellwise MCD-based imputation for mixed data
imputeCellEM

Cellwise-robust EM imputation for mixed data
imputeCellIRMI

Cellwise-robust iterative regression imputation for mixed data
hotdeck

Hot-Deck Imputation
histMiss

Histogram with information about missing/imputed values
impPCA

Iterative EM PCA imputation
imputeRobustChain

FUNCTION_TITLE
kola.background

Background map for the Kola project data
imputeCellMM

Cell-weighted MM imputation for mixed data (Path A)
inject_uncertainty

Inject imputation uncertainty into predictions
kNN

k-Nearest Neighbour Imputation
imputeCellReg

Cellwise-robust regression imputation for mixed data
initialise

Initialization of missing values
imputeRobust

Robust imputation
marginmatrix

Marginplot Matrix
makeMissing

Generate MCAR/MAR/MNAR missingness in complete data
imputeCellwise

Unified cellwise-robust imputation dispatcher
mapMiss

Map with information about missing/imputed values
maxCat

Aggregation function for a factor variable
medianSamp

Aggregation function for a ordinal variable
irmi

Iterative robust model-based imputation (IRMI)
lse_synthetic_rules

Validation rules for the synthetic LSE data
lse_synthetic

Synthetic Austrian Structural Business Survey data
marginplot

Scatterplot with additional information in the margins
matchImpute

Fast matching/imputation based on categorical variable
matrixplot

Matrix plot
plot.vimmi

Diagnostic plots for a vimmi object
pmm_donor_selection

Score-based PMM donor selection
new_vimmi

Constructor for vimmi objects
oob_predictions

Out-of-bag predictions of a fitted learner, when it exposes them
mosaicMiss

Mosaic plot with information about missing/imputed values
midastouch_donors

Midastouch: PMM with covariate-distance-weighted donor selection
parcoordMiss

Parallel coordinate plot with information about missing/imputed values
pbox

Parallel boxplots with information about missing/imputed values
overimpute

Overimputation: calibration diagnostic for an imputation model
pairsVIM

Scatterplot Matrices
rangerImpute

Random Forest Imputation
regressionImp

Regression Imputation (via vimpute)
rugNA

Rug representation of missing/imputed values
pmm_observed_scores

Predicted donor scores for true PMM
pulplignin

Pulp lignin content
register_vimpute_method

Register an imputation method for vimpute()
register_gam_learners

Register GAM-based mlr3 learners for vimpute
prepare

Transformation and standardization
tableMiss

create table with highlighted missings/imputations
sampleCat

Random aggregation function for a factor variable
scattmatrixMiss

Scatterplot matrix with information about missing/imputed values
testdata

Simulated data set for testing purpose
scattMiss

Scatterplot with information about missing/imputed values
toydataMiss

Simulated toy data set for examples
scattJitt

Bivariate jitter plot
tukey_weight

Tukey bisquare weight function
tao

Tropical Atmosphere Ocean (TAO) project data
sleep

Mammal sleep data
spineMiss

Spineplot with information about missing/imputed values
unregister_vimpute_method

Remove a user-registered vimpute() method
vim_as_mids

Convert a vimmi object to a mice mids object
vimpute_tune_control

Control the hyperparameter tuning of vimpute()
unwrap_raw_model

Unwrap a fitted mlr3 learner to its underlying model object
vimpute_spec

Per-variable imputation specification for vimpute()
vimpute_search_space

The built-in tuning search space of a learner
wine

Wine tasting and price
xgboostImpute

Xgboost Imputation
with.vimmi

Evaluate an expression across all imputations
vimpute_methods

List the imputation methods registered for vimpute()
vimpute

Impute missing values with prefered model, sequentially, with hyperparametertuning and with PMM (if wanted)
vimmi

VIM Multiple Imputations (vimmi)
vim_complete

Extract completed datasets from a vimmi object
bcancer

Breast cancer Wisconsin data set
bgmap

Backgound map
VIM-package

The VIM Package: Visualization and Imputation of Missing Values
barMiss

Barplot with information about missing/imputed values
bootstrap_resample

Bootstrap resampling with robust strategies
SBS5242

Synthetic subset of the Austrian structural business statistics data
Animals_na

Animals_na
alphablend

Alphablending for colors
brittleness

Brittleness index data set
aggr

Aggregations for missing/imputed values