Skip to contents

Returns the order of a univariate ARIMA or ARFIMA model.

Usage

arimaorder(object)

Arguments

object

An object of class Arima, ar or fracdiff. Usually the result of a call to stats::arima(), Arima(), auto.arima(), stats::ar(), arfima() or fracdiff::fracdiff().

Value

A numerical vector giving the values \(p\), \(d\) and \(q\) of the ARIMA or ARFIMA model. For a seasonal ARIMA model, the returned vector contains the values \(p\), \(d\), \(q\), \(P\), \(D\), \(Q\) and \(m\), where \(m\) is the period of seasonality.

Author

Rob J Hyndman

Examples

WWWusage |> auto.arima() |> arimaorder()
#> p d q 
#> 1 1 1