powered by
Calculate mixed error when the imputed matrix is mixed type
mixError(imp, mis, true, norm = TRUE)
the imputed matrix
the original matrix with missing values
the true matrix
logical, if TRUE, the nomailised RMSE will return for continous variables
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.
# NOT RUN { data(tic) Detect(tic) missdata <- SimIm(tic, 0.3) # } # NOT RUN { library(earth) impdata <- impute(tic, lmFun = "earth", cFun = "rpartC") mixError(impdata$imp, missdata, tic) # }
Run the code above in your browser using DataLab