The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
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.
You can install mvPred from CRAN with:
install.packages("mvPred")Then load the package with:
library(mvPred)The package currently includes methods for predictive modeling with missing data, including:
bootstrap(..., method = "CC")bootstrap(..., method = "AC")bootstrap(..., method = "PREFILL")bootstrap(..., method = "TOWER")For PREFILL, the supported imputation methods include:
miceAmeliamissForestimpute_method = "complete"Core modeling helpers in the package include:
bootstrap()lm_ac()lm_prefill()lm_tower()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_meanThe package also includes datasets used in examples and experiments, such as:
auto-mpgenglishNHkidsThese binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.