mv_treatment_numvar: Performs missing value imputation for numeric variables

Description Usage Arguments Value Warning

View source: R/hello.R

Description

Imputes missing values with mean or median. Also deletes the columns with missing values more than the specified cutoff

Usage

1
2
mv_treatment_numvar(df, col.del_cutoff = 0.5, var_list = num_var,
  treatment_type = mean)

Arguments

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

Value

Output is the data set with missing values imputed

Warning

Enter only numerical variables in var_list


saushe/RED documentation built on May 29, 2019, 3:20 p.m.