Description Usage Arguments Value Author(s) References See Also Examples
Four single imputation methods can be implemented by this function, including median/mode imputation (median imputation on continuous variables and mode imputation on categorical variables), mean/mode imputation (mean imputation on continuous variables and mode imputation on categorical variables), minimum-value/mode imputation (minimum-value imputation on continuous variables and mode imputation on categorical variables) and maximum-value/mode imputation (maximum-value imputation on continuous variables and mode imputation on categorical variables). When mmmm
=1, this function is the same as na.roughfix
from R package randomForest
.
1 | mfix(x, mmmm)
|
x |
A dataset with missing values. |
mmmm |
Its value is used to select from four different single imputation methods. |
Imputed dataset
Kuangnan Xiong
Liaw, A. & Wiener, M., 2002. Classification and regression by randomForest. R News, 2(3), pp. 18-22.
rrfa
, rrfb
, rrfc1
, rrfc2
, rrfc3
, rrfc4
,rrfc5
, rrfc6
, rrfc7
, rrfd
, rrfe
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.