Fits a univariate, non‑seasonal ARIMA time series model with the inclusion of one or more regression variables.
Required Arguments
Y — Array of length NOBS containing the time series. (Input)
IMODEL — Array of length 3 containing the model order parameters. (Input)
IMODEL(I)
Description
1
Order of the autoregressive part, p, where p≥0.
2
Order of the non‑seasonal difference operator, d, where d≥0.
3
Order of the moving average part, q, where q≥0.
If p = 0 and q = 0, only regression is performed.
PARMA —Array of length 1 + p + q containing the estimated autoregressive (AR) and moving average (MA) parameters of the ARIMA(p,d,q) model. PARMA(1) is the estimated AR constant parameter, PARMA(2: (p+1)) contains the AR parameter estimates and PARMA((p+2):), contains the MA parameter estimates. (Output)
Optional Arguments
NOBS — Number of observations. (Input) Default: NOBS = size(Y).
X — Array of size NOBS by K containing the regression data, where K = size(X,2) is the number of user supplied regression variables. (Input) Specific columns in X may be selected using the INDX argument. Otherwise, all columns of X are used. Default: No regression variables are included.
XLEAD — Array of size MXLEAD by K containing the regression data to be used in obtaining forecasts, where K = size(X,2) is the number of user supplied regression variables. (Input) Specific columns in XLEAD may be selected using the INDX argument. Otherwise all columns of XLEAD are used. Note: If MXLEAD > 0 and optional argument X is present, XLEAD is required.
INDX — Index array containing the column numbers in X and XLEAD that are to be used for the regression variables. (Input) Default: All columns of X and XLEAD are used.
TREND — Logical. If .TRUE., the routine will include a trend variable. (Input) Note: Setting TREND = .TRUE. has the effect of fitting an intercept term in the regression. If the difference operator IMODEL(2) = d > 0, the effect on the model in the original, undifferenced space is polynomial of order d. Default: TREND = .TRUE..
MXLEAD — Maximum lead time for forecasts. (Input) Note: If MXLEAD > 1, forecasts are returned for t = NOBS + 1, .NOBS + 2, …, NOBS + MXLEAD Default: MXLEAD = 0 (no forecasts).
MAXIT — Maximum number of iterations. (Input) Default: MAXIT = 50.
IPRINT — Printing option. (Input)
IPRINT
Action
0
No printing
1
Prints final results only
2
Prints intermediate and final results
Default: IPRINT = 0.
PREG — Array of length K + t containing the estimated regression coefficients, where t=0 if TREND=.FALSE. or t=1 if TREND=.TRUE.. (Output)
SE — Array of length p + q containing the standard errors of the ARMA parameter estimates. (Output)
AVAR — White noise variance estimate. (Output) Note: If IMODEL(0)+IMODEL(2)= 0 and K>0, AVAR is the mean squared regression residual.
REGSE — Array of length K + t containing the standard errors of the regression estimates, where t=0 if TREND=.FALSE. or t=1 if TREND=.TRUE.. (Output)
PREGVAR — Array of length (K + t) by (K + t) containing the variances and covariances of the regression coefficients, where t=0 if TREND=.FALSE. or t=1 if TREND=.TRUE.. (Output)
AIC — Akaike's Information Criterion for the fitted ARMA model. (Output)
LLIKE — Value of –2(ln(likelihood)) for fitted model. (Output)
FCST — Array of length MXLEAD containing the forecasts for time points t = NOBS + 1, .NOBS + 2, …, NOBS + MXLEAD. (Output)
FCSTVAR — Array of length MXLEAD containing the forecast variances for time points t = NOBS + 1, .NOBS + 2, …, NOBS + MXLEAD. (Output)
Fortran 90 Interface
Generic: CALLREG_ARIMA (Y, IMODEL, PARMA[, …])
Specific: The specific interface names are S_REG_ARIMA and D_REG_ARIMA.
Description
Routine REG_ARIMA fits an ARIMA(p, d, q) to a univariate time series with the possible inclusion of one or more regression variables.
Suppose Yt, t = 1, …, N, is a time series such that the d‑th difference is stationary. Further, suppose at is a series of uncorrelated, mean 0 random variables with variance .
The Auto‑Regressive Integrated Moving Average (ARIMA) model for {Yt, at} can be expressed as
where B is the backshift operator,
and
The notation for this model is ARIMA(p, d, q) where p is the order of the autoregressive polynomial , d is the order of the differencing needed to make stationary, and q is the order of the moving‑average polynomial .
The ARIMA model can be extended to include regression variables , by using the residuals (of the multiple regression of on ) in place of in the above ARIMA model.
Equivalently,
where
is the differenced residual series.
To estimate the (p + q + K) parameters of the specified regression ARIMA model, REG_ARIMA uses the iterative generalized least squares method (IGLS) as described in Otto, Bell, and Burman (1987).
The IGLS method iterates between two steps, one step to estimate the regression parameters via generalized least squares (GLS) and the second step to estimate the ARMA parameters. In particular, at iteration m, the first step finds
by solving the GLS problem with weight matrix
where
That is, minimizes , where , is an N by K matrix with i‑th column, , and is an N by N weight matrix defined using the theoretical autocovariances of the series . The series is modeled as an ARMA(p,q) with parameters and . At iteration m, the second step is then to obtain new estimates of and for the updated series,. To find the estimates and , REG_ARIMA uses the exact likelihood method as described in Akaike, Kitagawa, Arahata and Tada (1979) and used in routine, MAX_ARMA.
Comments
When forecasts are requested (MXLEAD > 0), REG_ARIMA requires that future values of the independent variables are provided in optional argument XLEAD. In effect, REG_ARIMA assumes the future X’s are known without error, which is valid for any deterministic function of time such as a seasonal indicator. Also, in economics, certain factors that are considered to be leading indicators are treated as deterministic for the purpose of predicting changes in the economy. Users may consider using a more general transfer function model if this is an unreasonable assumption. REG_ARIMA calculates forecast variances using the asymptotic result found in Fuller (1996) , Theorem 2.9.4. To obtain the standard errors of the ARMA parameters, REG_ARIMA calls routine NSLSE for the final w series.
Examples
Example 1
The data set consists of annual mileage per passenger vehicle and annual US population (in 1000’s) spanning the years 1980 to 2006 (U.S. Energy Information Administration, 2008). Consider modeling the annual mileage using US population as a regression variable.
The data set consists of simulated weekly observations containing a strong annual seasonality. The seasonal variables are constructed and sent into REG_ARIMA as regression variables.