Learn R Programming

mvdalab (version 1.7)

imputeQs: Quartile Naive Imputation of Missing Values

Description

Missing value imputed as 'Missing'.

Usage

imputeQs(data)

Arguments

data

a dataset with missing values

Author

Nelson Lee Afanador (nelson.afanador@mvdalab.com)

Details

A completed data frame is returned. For continous variables with missing values, missing values are replaced with 'Missing', while the non-missing values are replaced with their corresponding quartile assignment. For categorical variable with missing values, missing values are replaced with 'Missing'. This procedure can greatly increases the dimensionality of the data.

Examples

Run this code
dat <- introNAs(iris, percent = 25)
imputeQs(dat)

Run the code above in your browser using DataLab