Description Usage Arguments Value Note Examples
Calculates the Mean Absolute Scaled Error(MASE) between x and the target. This is intended to be used for measuring the accuracy of a time series forecast, since it reports the error in the context of the naive forecast (random walk for non-seasonal, or a seasonal naive otherwise).
1 |
x |
numeric vector; the forecast to evaluate. |
target |
numeric vector; the target values. |
m |
atomic integer; the seasonal period. Defaults to 1 if non-seasonal. |
na.rm |
logical; should NAs be removed before calculation? |
An atomic numeric vector containing the calculated MASE.
This will return Inf
when the last length(x) - m
values in target are all the same.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.