nrmse | R Documentation |
Given the observed and predicted values of numeric data computes the Normalized Root Mean Squared Error.
nrmse(observed, predicted, type = "mean", remove_na = TRUE)
observed |
( |
predicted |
( |
type |
( |
remove_na |
( |
Normalized Root Mean Squared Error is computed as:
where y_i is the observed value of element i, haty_i is the predicted
value of element i, N is the total number of elements and Y' is the
normalized observed values. You can specify one of the following types of
normalization with the type
parameter:
"sd"
: Standard deviation.
"mean"
: Mean.
"maxmin"
or "range"
: Maximun minus minimum (range).
"iqr"
: Interquantile range (Q3 - Q1).
A single numeric value with the Normalized Root Mean Squared Error.
Other numeric_metrics:
maape()
,
mae()
,
mse()
,
numeric_summary()
,
pearson()
,
r2()
,
rmse()
,
spearman()
## Not run:
set.seed(1)
x <- rnorm(100)
nrmse(x, x)
nrmse(x, x - 1, type = "mean")
nrmse(x, x + 10, type = "iqr")
nrmse(x, x + 10, type = "range")
nrmse(x, x + 10, type = "maxmin")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.