Auto-model specification of a scalar seasonal time series. The period should be given.
sarimaSpec(
zt,
maxorder = c(2, 1, 3),
maxsea = c(1, 1, 1),
criterion = "bic",
period = 12,
output = FALSE,
method = "CSS-ML",
include.mean = TRUE
)
T by 1 vector of an observed scalar time series without missing values.
Maximum order of \((p,d,q)\). \(p\) is the AR order, \(d\) the degree of differencing, and \(q\) The MA order. Default value is (2,1,3).
Maximum order of \((P,D,Q)\). \(P\) is the seasonal AR order, \(D\) the degree of seasonal differencing, and \(Q\) the seasonal MA order. Default value is (1,1,1).
Information criterion used for model selection. Either AIC or BIC. Default is "bic".
Seasonal period. The default is 12.
If TRUE it returns the differencing order, the selected order and the minimum value of the criterion. Default is TRUE.
Estimation method. See the arima command in R. Possible values are "CSS-ML", "ML", and "CSS". Default is "CSS-ML".
Should the model include a mean/intercept term? Default is TRUE.
A list containing:
data - The time series. If any transformation is taken, "data" is the transformed series.
order - Regular ARIMA order.
sorder - Seasonal ARIMA order.
period - Seasonal period.
include.mean - Switch about including mean in the model.
ADF unit-root test is used to assess seasonal and regular differencing. For seasonal unit-root test, critical value associated with pv = 0.01 is used.
# NOT RUN {
data(TaiwanAirBox032017)
output <- sarimaSpec(TaiwanAirBox032017[1:100,1])
# }
Run the code above in your browser using DataLab