View source: R/imputeCellwise.R
| imputeCellwise | R Documentation |
Convenience wrapper that dispatches to one of the three cellwise-robust
imputation methods: imputeCellIRMI, imputeCellM,
or imputeCellEM.
imputeCellwise(data, method = c("cellIRMI", "cellM", "cellEM"), ...)
data |
data.frame with missing values (mixed continuous + categorical). |
method |
imputation method: |
... |
additional arguments passed to the chosen method. |
The return value of the dispatched function. See the documentation of the individual methods for details.
Model uncertainty via bootstrap (Rubin's combining rules for multiple imputation) is not yet implemented. The current version provides single imputation with stochastic uncertainty (PMM or residual draw). For valid multiple imputation, call the function repeatedly with different seeds and combine using Rubin's rules.
Matthias Templ
imputeCellIRMI, imputeCellM,
imputeCellEM
Other imputation methods:
hotdeck(),
impPCA(),
imputeCellEM(),
imputeCellIRMI(),
imputeCellM(),
imputeCellMCD(),
imputeRobust(),
imputeRobustChain(),
irmi(),
kNN(),
matchImpute(),
medianSamp(),
rangerImpute(),
regressionImp(),
sampleCat(),
vimmi,
vimpute(),
xgboostImpute()
data(sleep, package = "VIM")
result <- imputeCellwise(sleep, method = "cellIRMI")
head(result$data_imputed)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.