mixError: Calculate mixed error when the imputed matrix is mixed type

Description Usage Arguments Value Examples

View source: R/mixError.R

Description

Calculate mixed error when the imputed matrix is mixed type

Usage

1
mixError(imp, mis, true, norm = TRUE)

Arguments

imp

the imputed matrix

mis

the original matrix with missing values

true

the true matrix

norm

logical, if TRUE, the nomailised RMSE will return for continous variables

Value

a vector of two values indicating the mixed error the the imputation, the first one if either RMSE or NRMSE, the second one is MCE.

Examples

1
2
3
4
5
6
7
data(tic)
Detect(tic)
missdata <- SimIm(tic, 0.3)

library(earth)
impdata <- impute(tic, lmFun = "earth", cFun = "rpartC")
mixError(impdata$imp, missdata, tic)

imputeR documentation built on Jan. 21, 2020, 1:06 a.m.