Description Usage Arguments Value Warning
Imputes missing values with mean or median. Also deletes the columns with missing values more than the specified cutoff
1 2 | mv_treatment_numvar(df, col.del_cutoff = 0.5, var_list = num_var,
treatment_type = mean)
|
df |
The data frame on which the missing value treatment needs to be performed |
col.del_cutoff |
Variables with missing value percentage greater than col.del_cutoff will be dropped. Default value is 50 percent |
var_list |
Specify the list of variable for which the missing value imputation is to be performed |
treatment_type |
Specify imputation type - mean or median |
Output is the data set with missing values imputed
Enter only numerical variables in var_list
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.