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

mr

calculate miss-classification error


Description

This function calculates the misclassfication error given the imputed data, the missing data and the true data.

Usage

mr(imp, mis, true)

Arguments

imp

the imputaed data matrix

mis

the missing data matrix

true

the ture data matrix

Value

The missclassification error

Examples

data(spect)
Detect(spect)
missdata <- SimIm(spect, 0.1)

sum(is.na(missdata))
# impute using rpart
impdata <- impute(missdata, cFun = "rpartC")
# calculate the misclassification error
mr(impdata$imp, missdata, spect)

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.