Compute Symmetric Mean Absolute Percentage Error (SMAPE),
Mean Absolute Scaled Error (MASE),
and Root Mean Squared Error (RMSE) from forecasted and validation data.
A numeric vector of predicted or forecasted values. Its length must be the same as the
length of the validation argument.
validation
A numeric vector of actual (real) values being forecasted. Its length must be the same as the
length of the forecast argument.
Value
A numeric value.
Details
The function compute various error measures of the forecasts.
Let $v_i$, $f_i$ be the $i$-th elements of
validation or forecast, respectively, and
$n$ be the length of validation. Then: