Selects an AR order by minimising a penalised-likelihood criterion over
nested fits, with the innovation variances estimated by Yule-Walker
(one Levinson-Durbin pass, the convention of stats::ar.yw()), Burg, or
conditional least squares on a common sample.
Arguments
- x
A numeric vector (a stationary series).
- criterion
One of
"aic","aicc","bic","hq","fpe","cat","mdl".- method
One of
"yw"(default),"burg","ols".- max_order
Maximum candidate order;
NULLuses thestats::ar()defaultmin(n - 1, 10 log10 n).