Methods for Handling Missing Values in Linear Modeling

Provides user-friendly methods for handling missing data in regression modeling, including available-case linear regression, multiple imputation, random-forest imputation, and the Tower method. Implemented approaches include chained-equation imputation described by van Buuren and Groothuis-Oudshoorn (2011) , multiple imputation described by Honaker, King and Blackwell (2011) , random-forest imputation described by Stekhoven and Buehlmann (2012) , and the Tower method described by Matloff and Mohanty (2023) < https://CRAN.R-project.org/package=toweranNA>.


mvPred: A Central Repo for Handling Missing Values in Predictive Applications

Methods for handling missing values abound, but they are almost all focused in applications in which the goal is effect estimation, e.g. calculation and statistical inference for regression coefficients. Our focus here is instead on prediction.

Note that this should not be confused with packages that use regression methods for inputation. There, the missing values in a variable Xi may be inputed using predictions in which X2 is regressed on the other Xj. Instead, we are interested in applications in prediction itself is the focus, such as forecasting or disease diagnosis.

Installation

You can install mvPred from CRAN with:

install.packages("mvPred")

Then load the package with:

library(mvPred)

Main Methods

The package currently includes methods for predictive modeling with missing data, including:

  • complete-case analysis via bootstrap(..., method = "CC")
  • available-case regression via bootstrap(..., method = "AC")
  • PREFILL-based approaches via bootstrap(..., method = "PREFILL")
  • TOWER-based modeling via bootstrap(..., method = "TOWER")

For PREFILL, the supported imputation methods include:

  • mice
  • Amelia
  • missForest
  • complete-case imputation through impute_method = "complete"

Core modeling helpers in the package include:

  • bootstrap()
  • lm_ac()
  • lm_prefill()
  • lm_tower()

Example

library(mvPred)

data("auto-mpg", package = "mvPred")

df <- auto_mpg
df$car_name <- NULL

for (nm in names(df)) {
  suppressWarnings(df[[nm]] <- as.numeric(df[[nm]]))
}

res <- bootstrap(
  data = df,
  yName = "mpg",
  k = 5,
  task = "regression",
  method = "CC"
)

res$RMSE_mean

Package Data

The package also includes datasets used in examples and experiments, such as:

  • auto-mpg
  • english
  • NHkids

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("mvPred")

0.1.0 by Billy Ouattara, 21 days ago


https://github.com/matloff/mvPred


Report a bug at https://github.com/matloff/mvPred/issues


Browse source code at https://github.com/cran/mvPred


Authors: Norman Matloff [aut] , Cynthia Mascarenhas [aut] , Billy Ouattara [aut, cre] , Alekya Veluri [aut]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports regtools, mice, Amelia, missForest, toweranNA, stats, utils, qeML


See at CRAN