Skip to content

Repository files navigation

VIM

R-CMD-check Codecov test coverage CRAN status Mentioned in Awesome Official Statistics

This package introduces new tools for the visualization of missing and/or imputed values, which can be used for exploring the data and the structure of the missing and/or imputed values. Depending on this structure of the missing values, the corresponding methods may help to identify the mechanism generating the missings and allow exploration of the data including missing values. In addition, the quality of imputation can be visually explored using various univariate, bivariate, multiple and multivariate plot methods.

Installation

## Install release version from CRAN
install.packages("VIM")

## Install development version from GitHub
remotes::install_github("statistikat/VIM")

Usage

The core functionality of VIM can be categorized into two groups

  1. Imputation functions: vimpute() provides unified single and multiple imputation over exchangeable machine-learning and robust methods (random forest, XGBoost, regularized, robust regression, GAM/robust GAM — and any registered mlr3 learner via register_vimpute_method()), with per-variable specs, hyperparameter tuning, mice-compatible pooling (vimmi, vim_as_mids()), and diagnostics (plot() chains/density, overimpute(), per-variable model quality). Classic workhorses such as kNN(), hotdeck() and irmi() as well as the cellwise-robust family (imputeCellwise() and friends) complement it, and makeMissing() generates MCAR/MAR/MNAR missingness for simulation studies.
  2. Visualization functions such as histMiss() or barMiss() provide extensions of common base graphics which use a special way of highlighting missing and imputed values. For more details, see the visualization vignette.

Additionally, datasets are included to showcase the functions mentioned above. Other functions provide tabular aggregations of missings and visualization of spatial data.

Further reading

Publications

About

Visualization and Imputation of Missing Values

Topics

Resources

Stars

93 stars

Watchers

12 watching

Forks

Releases

Packages

Used by

Contributors

Languages