calculate the RMSE or NRMSE
This function calculate imputation error given the imputed data, the missing data and the true data
Rmse(imp, mis, true, norm = FALSE)
imp |
the imputaed data matrix |
mis |
the missing data matrix |
true |
the true data matrix |
norm |
logical, if TRUE then the normalized RMSE will be returned |
the RMSE or NRMSE
data(parkinson) # introduce 10% random missing values into the parkinson data missdata <- SimIm(parkinson, 0.1) # impute the missing values by LASSO impdata <- impute(missdata, lmFun = "lassoR") # calculate the normalised RMSE for the imputation Rmse(impdata$imp, missdata, parkinson, norm = TRUE)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.