Given a matrix mat filled with the values of an information criterion
for different estimated ARMA(\(p,q\)) models, where the rows represent
different orders \(p = 0, 1, ..., p_{max}\) and where
the columns represent the orders \(q = 0, 1, ..., q_{max}\), the function returns a vector with the optimal orders
\(p\) and \(q\). Further selection restrictions can be passed to the
argument restr as an expression. To implement a restriction, the rows
and columns are addressed via p and q, respectively. Moreover,
standard boolean operators such as ==, >= or & can be
used. See the Section Examples for examples of different restrictions.
In many cases, the minimum value of a criterion is considered to indicate
the best model. However, in some other cases a different selection approach
might be appropriate. Therefore, a selection function can be considered by
means of the argument sFUN. The default is sFUN = min, i.e. the
function min is applied to select the optimal
orders.