| misl | R Documentation |
Imputes missing values using multiple imputation by super learning (under review).
misl(
dataset,
m = 5,
maxit = 5,
seed = NA,
con_method = c("Lrnr_mean", "Lrnr_glm_fast"),
bin_method = c("Lrnr_mean", "Lrnr_glm_fast"),
cat_method = c("Lrnr_mean"),
ignore_predictors = NA,
quiet = TRUE
)
dataset |
A dataframe or matrix containing the incomplete data. Missing values are represented with |
m |
The number of multiply imputed datasets to create. The default is |
maxit |
The number of iterations for each of the |
seed |
Specify whether or not to include a seed for reproducible research. The default is |
con_method |
A vector of strings to be supplied for building the super learner for columns containing continuous data. The default learners are |
bin_method |
A vector of strings to be supplied for building the super learner for columns containing binomial data. Important to note that these values must only take on values |
cat_method |
A vector of strings to be supplied for building the super learner for columns containing categorical data. The default learners are |
ignore_predictors |
A vector of strings to be supplied for ignoring in the prediction of other variables. The default is |
quiet |
A boolean describing if progress of the misl algorithm should be printed to the console. The default is |
A list of m full tibbles.
# This will generate imputations for the built-in abalone dataset.
misl_imp <- misl(abalone,
maxit = 2,
m = 2,
con_method = c("Lrnr_glm_fast", "Lrnr_earth", "Lrnr_ranger"),
bin_method = c("Lrnr_earth", "Lrnr_glm_fast", "Lrnr_ranger"),
cat_method = c("Lrnr_independent_binomial", "Lrnr_ranger")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.