Home   >   User Resources   >   Online Help   >   apaARIMA.Estimate
 

 

Function index Version 3.0.0

apaARIMA.Estimate(Series, p, d, q, IncludeConstant)

Excel=apaARIMA.Estimate(Series, p, d, q, IncludeConstant)

Result

Estimates an ARIMA(p,d,q) model and returns model details, coefficients and the residual series.

Syntax

Series: n x 1 or 1 x n range containing the time series

p: AR order

d: integration order

q: MA order

IncludeConstant: TRUE to include an intercept (d = 0) or a drift (d = 1) (optional, default TRUE). For d ≥ 2 no constant is estimated regardless of this argument, because a constant in the twice or more differenced series would induce a quadratic or higher-order polynomial trend in the forecasts.

Algorithm

The series is flattened to a vector; at least 10 observations are required.

p, d and q are rounded to the nearest integers; orders must be non-negative and at least one must be positive.

The series is differenced d times. The ARMA(p,q) model of the differenced series is fitted by the conditional Gaussian likelihood (conditional sum of squares) using Nelder–Mead optimization with restarts. The likelihood conditions on the first p observations of the differenced series, and the pre-sample errors are set to zero; the innovation variance, the log-likelihood and the information criteria are based on the remaining n − d − p observations.

Stationarity requires all roots of 1 − φ1z − … − φpz^p, and invertibility all roots of 1 + θ1z + … + θqz^q, to lie outside the unit circle. Parameter vectors that violate either condition are rejected.

The deterministic term type (none, intercept or drift) and its value are determined.

The result table contains:

  • Model structure (ARIMA(p,d,q)), deterministic term type and value.

  • Innovation variance and unconditional mean of the differenced series.

  • Log-likelihood, negative log-likelihood, AIC, AICc and BIC.

  • Number of evaluations, number of restarts and termination reason.

  • AR coefficients, MA coefficients, the working series, the fitted values, the residuals and the standardized residuals. For the first p observations, which are conditioned on, the fitted values and residuals are shown as #N/A.