Normalized root mean square error (nrmse)

nrmse(x, y, method = c("maxmin", "sd", "mean", "iq"))

Arguments

x

variable x

y

variable y

method

method to calculate nrmse. Valid values are:

  • sd: standard deviation of observations (x)

  • maxmin: difference between maximum and minimum observations (x)

  • mea: average of observations (x)

  • iq: the difference between 25th and 75th percentile (x)

Value

Normalized root mean square error.

Examples

nrmse(runif(10), runif(10))
#> [1] 0.5042473