Description
Function used to fill NAs with imputation values, while adding NA flags to the data.
Usage
naImpute(FMLA, DATA, impfn = median, na.rm = TRUE, include.NA.flags = TRUE)
Arguments
- FMLA
Formula
- DATA
Data
- impfn
Function for imputing.
- na.rm
What to do with NA's
- include.NA.flags
Should NA flags be included