g_arima(G;S;O;X;P;D;Q;OPTS)
Fits an ARIMA(P,D,Q)
model to the time series
data in column X
. (Available as of version
19.14)
Function type
Vector only
Syntax
g_arima(G;S;O;X;P;D;Q;OPTS)
Input
Argument | Type | Description |
---|---|---|
G |
any | A space- or comma-separated list of column names Rows are in the same group
if their values for all of the columns listed in If If any of the columns listed in |
S |
integer | The name of a column in which every row evaluates to a 1 or 0, which determines
whether or not that row is selected to be included in the calculation If
If any of the values in
|
O |
integer | A space- or comma-separated list of column names that
determine the row order within a particular group If
If any of the values in |
X |
any | A column name |
P |
integer | The number of lag observations included in the ARIMA model. |
D |
integer | The number of times the raw observations are differenced in the ARIMA model. |
Q |
integer | The size of the moving average window in the ARIMA model. |
OPTS |
list-value | Optional OPTION:VALUE pairs, separated by commas.
Values for
method include the following:
Values for optmethod include the following:
Values for auto include:
The following options are available when auto:1 :
|
Return Value
For each value of G
(and for those rows where
S
=1, if specfied), g_arima
returns an ARIMA model object. Click the model object in the TRS/MLW grid view to see all
the parameters of the model object.
g_arima
returns can be used as an argument to the following
functions:param(M;P;I)
to extract the numerical value of the model parametercparam(M;P;I)
to extract the text value of the model parameter
M
is the column containing the result of
g_arima
, use the following function calls to obtain the desired information:cparam(M;'model';)
- Returns
'arima'
cparam(M;'result';)
- Returns 'ok' or 'error' according to whether the fit was successful or not
cparam(M;'message';)
- Returns a more detailed message concerning the success or failure of the optimization routine
param(M;'phi';I)
- Return the phi parameter from the fitted models (for
I
between1
andP
inclusive) param(M;'theta';I)
- Return the theta parameter from the fitted models (for
I
between1
andQ
inclusive) param(M;'n_used';)
- The number of points used in the model (equal to the number of values in
X
, minusD
) param(M;'n_coeff';)
- The number of fitted coefficients, equal to
P
+Q
, plus 1 if mean is non-zero param(M;'res';I)
- Residuals for
I
between 1 andparam(M;'n_used';)
inclusive param(M;'vcov';I J)
- Covariance matrix elements for I and J varying between 1 and
param(M;'n_coeff';)
inclusive