Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

mixError

Calculate mixed error when the imputed matrix is mixed type


Description

Calculate mixed error when the imputed matrix is mixed type

Usage

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

data(tic)
Detect(tic)
missdata <- SimIm(tic, 0.3)

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

imputeR

A General Multivariate Imputation Framework

v2.2
GPL-3
Authors
Steffen Moritz [aut, cre] (<https://orcid.org/0000-0002-0085-1804>), Lingbing Feng [aut], Gen Nowak [ctb], Alan. H. Welsh [ctb], Terry. J. O'Neill [ctb]
Initial release
2020-01-20

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.