Learn R Programming

VIM (version 7.3.1)

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.1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Matthias Templ

Last Published

September 11th, 2026

Functions in VIM (7.3.1)

cellWeightsFromResiduals

Compute cell weights from regression residuals
countInf

Count number of infinite or missing values
.apply_weight_fun

Apply a weight function to standardized values
complete_model_info

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

Synthetic Pima Indians Diabetes Data
extract_model_info

Extract model diagnostics for bootstrap strategies
gowerD

Computes the extended Gower distance of two data sets
imputeCellM

Cellwise M-estimation imputation
.weighted_qr_solve

QR-based weighted least squares with cell-derived row weights
.robust_scale

Robust scale estimate via MAD
imputeCellIRMI

Cellwise-robust iterative regression imputation for mixed data
imputeCellEM

Cellwise-robust EM imputation for mixed data
imputeCellMCD

Cellwise MCD-based imputation for mixed data
hotdeck

Hot-Deck Imputation
food

Food consumption
huber_weight

Huber weight function
histMiss

Histogram with information about missing/imputed values
gapMiss

Missing value gap statistics
growdotMiss

Growing dot map with information about missing/imputed values
evaluation

Error performance measures
impPCA

Iterative EM PCA imputation
imputeRobustChain

FUNCTION_TITLE
imputeCellwise

Unified cellwise-robust imputation dispatcher
kNN

k-Nearest Neighbour Imputation
inject_uncertainty

Inject imputation uncertainty into predictions
imputeRobust

Robust imputation
irmi

Iterative robust model-based imputation (IRMI)
maxCat

Aggregation function for a factor variable
imputeCellMM

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

Cellwise-robust regression imputation for mixed data
medianSamp

Aggregation function for a ordinal variable
matchImpute

Fast matching/imputation based on categorical variable
makeMissing

Generate MCAR/MAR/MNAR missingness in complete data
mapMiss

Map with information about missing/imputed values
initialise

Initialization of missing values
matrixplot

Matrix plot
marginplot

Scatterplot with additional information in the margins
overimpute

Overimputation: calibration diagnostic for an imputation model
plot.vimmi

Diagnostic plots for a vimmi object
marginmatrix

Marginplot Matrix
kola.background

Background map for the Kola project data
lse_synthetic

Synthetic Austrian Structural Business Survey data
parcoordMiss

Parallel coordinate plot with information about missing/imputed values
lse_synthetic_rules

Validation rules for the synthetic LSE data
new_vimmi

Constructor for vimmi objects
midastouch_donors

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

Mosaic plot with information about missing/imputed values
pmm_donor_selection

Score-based PMM donor selection
pbox

Parallel boxplots with information about missing/imputed values
register_vimpute_method

Register an imputation method for vimpute()
oob_predictions

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

Register GAM-based mlr3 learners for vimpute
pulplignin

Pulp lignin content
rangerImpute

Random Forest Imputation
sampleCat

Random aggregation function for a factor variable
pmm_observed_scores

Predicted donor scores for true PMM
unregister_vimpute_method

Remove a user-registered vimpute() method
tukey_weight

Tukey bisquare weight function
prepare

Transformation and standardization
sleep

Mammal sleep data
spineMiss

Spineplot with information about missing/imputed values
regressionImp

Regression Imputation (via vimpute)
tableMiss

create table with highlighted missings/imputations
vimpute

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

Extract completed datasets from a vimmi object
vimpute_tune_control

Control the hyperparameter tuning of vimpute()
pairsVIM

Scatterplot Matrices
testdata

Simulated data set for testing purpose
scattMiss

Scatterplot with information about missing/imputed values
rugNA

Rug representation of missing/imputed values
unwrap_raw_model

Unwrap a fitted mlr3 learner to its underlying model object
toydataMiss

Simulated toy data set for examples
scattmatrixMiss

Scatterplot matrix with information about missing/imputed values
wine

Wine tasting and price
vim_as_mids

Convert a vimmi object to a mice mids object
tao

Tropical Atmosphere Ocean (TAO) project data
scattJitt

Bivariate jitter plot
vimpute_search_space

The built-in tuning search space of a learner
vimpute_methods

List the imputation methods registered for vimpute()
vimmi

VIM Multiple Imputations (vimmi)
vimpute_spec

Per-variable imputation specification for vimpute()
xgboostImpute

Xgboost Imputation
with.vimmi

Evaluate an expression across all imputations
SBS5242

Synthetic subset of the Austrian structural business statistics data
build_gam_formula

Build a GAM formula with automatic smooth terms
bgmap

Backgound map
barMiss

Barplot with information about missing/imputed values
colormapMiss

Colored map with information about missing/imputed values
cellIRWLS

Cell-weighted Iteratively Reweighted Least Squares
VIM-package

The VIM Package: Visualization and Imputation of Missing Values
Animals_na

Animals_na
collisions

Subset of the collision data
bootstrap_resample

Bootstrap resampling with robust strategies
brittleness

Brittleness index data set
alphablend

Alphablending for colors
cellWeights

Compute per-cell contamination weights
bcancer

Breast cancer Wisconsin data set
aggr

Aggregations for missing/imputed values
cellWeightsMCD

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

C-horizon of the Kola data with missing values
colSequence

HCL and RGB color sequences
colic

Colic horse data set