| imputeRough | R Documentation | 
After generating a cell means model matrix, impute expected values (mean or median for continous; hightest frequency for categorical).
imputeRough(data, Init = "mean")
| data | a dataset with missing values | 
| Init | For continous variables impute either the mean or median | 
A completed data frame is returned that mirrors a model.matrix. NAs are replaced with column means or medians. If object contains no NAs, it is returned unaltered.  This is the starting point for imputeEM.
imputeRough returns a list containing the following components:
| Initials | Imputed values | 
| Pre.Imputed | Pre-imputed data frame | 
| Imputed.Dataframe | Imputed data frame | 
Nelson Lee Afanador (nelson.afanador@mvdalab.com)
dat <- introNAs(iris, percent = 25) imputeRough(dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.