Rmse: calcula el RMSE o 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

la data imputada

mis

la data con missings

true

la verdadera data matriz

norm

logical, si eS TRUE ENTONCES EL RMSE volverá

Value

the RMSE or NRMSE

See Also

impute por la funcion de imputacion, mr pr el error de clasificar mal el error metrico

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)

domus11move/ImputeTurbo documentation built on Dec. 1, 2019, 12:35 a.m.