View source: R/Impute_missing_covs_rf.R
Impute_missing_covs_rf | R Documentation |
Imputes missing covariate values using a Random Forest model informed with specified covariates.
Impute_missing_covs_rf(dat, v.fill, v.inform)
dat |
Data frame or matrix containing covariate values. |
v.fill |
String naming the variable in 'dat' with missing values to be imputed. |
v.inform |
String vector naming the covariates in 'dat' to be used for informing a random forest model to impute missing values. |
Data frame or matrix of same dimensions as 'dat' but with missing values imputed.
R packages required: randomForest, dplyr, stringr
Quresh S. Latif
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.