View source: R/impute_missing_data.R
impute_missing_data | R Documentation |
Filter out rows with too much missing data, impute the remaining missing values
impute_missing_data( data = NULL, covars = NULL, max_missing = 3, impute_vars = NULL, method = c("Hmisc", "missForest", "randomForestSRC"), ntree = 100, nk = 4, ... )
data |
data.frame containing |
covars |
vector of covariate names to be imputed, which match column names in |
max_missing |
integer value of the maximum number of columns per row that may have missing values. Rows with more than this number of missing covariates will be deleted. |
impute_vars |
additional covariates included in |
method |
which method to use, either by creating random forests using the |
ntree |
how many trees to build if |
nk |
how many knots to use in smoothing splines if using |
... |
other arguments to be passed to either |
data.frame containing non-missing and imputed data
Kevin See
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.