This function fits AR(1), ... AR(9) models for all given time series and calculates different information criterions (FPE, AIC, AICC, SIC, HQ) for each of these fits. The result is the best fit in terms of minimizing the infromation criteria.
select_order(data, q = NULL, r = 5:15)A list with a number of elements:
A vector of chosen orders of length equal to the number of time series. For each time series the order is calculated as \(\max(which.min(FPE), ... which.min(HQ))\)
Matrices with the orders that were selected (among \(1, \ldots, 9\)) for each information criterion. One matrix for each time series.
One or a number of time series in a matrix. Column names of the matrix should be reasonable
A vector of integers that consisits of different tuning parameters to analyse. If not supplied, q is taken to be \([2\log{T}]:([2\sqrt{T}] + 1)\).
A vector of integers that consisits of different tuning
parameters r_bar for estimate_lrv.
If not supplied, \(r = 5, \ldots, 15\).