calculate miss-classification error
This function calculates the misclassfication error given the imputed data, the missing data and the true data.
mr(imp, mis, true)
imp |
the imputaed data matrix |
mis |
the missing data matrix |
true |
the ture data matrix |
The missclassification error
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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.