Rmse: calculate the RMSE or NRMSE

Description Usage Arguments Value See Also Examples

View source: R/funs.R

Description

This function calculate imputation error given the imputed data, the missing data and the true data

Usage

1
Rmse(imp, mis, true, norm = FALSE)

Arguments

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

Value

the RMSE or NRMSE

See Also

impute for the main imputation function, mr for the misclassification error metric.

Examples

1
2
3
4
5
6
7
8
9
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)

imputeR documentation built on Jan. 21, 2020, 1:06 a.m.