arima
Class:regARIMA
Convert regression model with ARIMA errors to ARIMAX model
Syntax
ARIMAX = arima(Mdl)
[ARIMAX,XNew] = arima(Mdl,Name,Value)
Description
Thearima
object function converts a specified regression model with ARIMA errors (regARIMA
model object) to the equivalent ARIMAX model (arima
model object). To create an ARIMAX model directly, seearima
。
converts the univariate regression model with ARIMA time series errorsARIMAX
= arima(Mdl
)Mdl
to a model of typearima
including a regression component (ARIMAX).
[
returns an updated regression matrix of predictor data using additional options specified by one or moreARIMAX
,XNew
] = arima(Mdl
,Name,Value
)Name,Value
pair arguments.
Input Arguments
|
Regression model with ARIMA time series errors, as created by |
Name-Value Arguments
Specify optional pairs of arguments asName1=Value1,...,NameN=ValueN
, whereName
is the argument name andValue
is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.
Before R2021a, use commas to separate each name and value, and encloseName
in quotes.
|
Predictor data for the regression component of The last row of Each column of |
Output Arguments
|
ARIMAX model equivalent to the regression model with ARIMA errors |
|
Updated predictor data matrix for the regression component of
Each column of |
Examples
Algorithms
LetXdenote the matrix of concatenated predictor data vectors (or design matrix) andβdenote the regression component for the regression model with ARIMA errors,Mdl
。
If you specify
X
, thenarima
returnsXNew
in a certain format. Suppose that the nonzero autoregressive lag term degrees ofMdl
are 0 <a1<a2< ...<P, which is the largest lag term degree. The software obtains these lag term degrees by expanding and reducing the product of the seasonal and nonseasonal autoregressive lag polynomials, and the seasonal and nonseasonal integration lag polynomialsThe first column of
XNew
isXβ。The second column of
XNew
is a sequence ofa1NaN
s, and then the product whereThejth column of
XNew
is a sequence ofajNaN
s, and then the product whereThe last column of
XNew
is a sequence ofapNaN
s, and then the product where
Suppose that
Mdl
is a regression model with ARIMA(3,1,0) errors, andϕ1= 0.2 andϕ3= 0.05. Then the product of the autoregressive and integration lag polynomials isThis implies that
ARIMAX.Beta
is[1 -1.2 0.02 -0.05 0.05]
andXNew
iswherexjis thejth row ofX。
If you do not specify
X
, thenarima
returnsXNew
as an empty matrix without rows and one plus the number of nonzero autoregressive coefficients in the difference equation ofMdl
columns.