auto.arima function - RDocumentation
<p>Returns best ARIMA model according to either AIC, AICc or BIC value. The function conducts a search over possible model within the order constraints provided.</p>