sc.impute {monobinShiny} | R Documentation |
Special case imputation
Description
Special case imputation
Usage
sc.impute(tbl, rf, sc, sc.replace, imp.method)
Arguments
tbl |
Data frame with risk factors ready for imputation. |
rf |
Vector of risk factors to be imputed. |
sc |
Numeric vector of special case values. |
sc.replace |
Numeric vector of special case values that are selected for imputation. |
imp.method |
Imputation method (mean or median). |
Value
Returns a list of three elements. The first element is a data frame with imputed values, the second element is a vector of newly created risk factors (with imputed values) and the third one is a data frame with information about possible imputation errors.
Examples
if (interactive()) {
imp.res <- suppressWarnings(
sc.impute(tbl = rv$db,
rf = rf,
sc = sca.check.res[[1]],
sc.replace = scr.check.res[[1]],
imp.method = imp.method)
)
}
[Package monobinShiny version 0.1.0 Index]