powered by
The function `tsmodeleval` can be used to evaluate the goodness of fit of a time series model.
tsmodeleval
tsmodeleval(object)
A list with the following model evaluation criteria:
mean error
Root mean square error
mean absolute error
mean percentage error
mean absolute percentage error
mean absolute scaled error
seasonal mean absolute scaled error
lag 1 autocorrelation
a time series model of class `tsarima`, `tsesm`, or `tsmovav`. It can also be a list with at least the two elements: `x` and `fitted`.
tsarima
tsesm
tsmovav
x
fitted
Ka Yui Karl Wu
Hyndman, R. J., Athanasopoulos, G. (2021). Forecasting: Principles and practice (3rd ed.). OTexts. https://otexts.com/fpp3/
tsmodeleval(tsarima(airport$Travellers, order = c(1, 1, 0), seasonal = c(0, 1, 1), log = TRUE, include.const = TRUE))
Run the code above in your browser using DataLab