|
Chapter Contents |
Previous |
Next |
| The VARMAX Procedure |

Analyzing and modeling the series jointly enables you to understand the dynamic relationships over time among the series and to improve the accuracy of forecasts for individual series by utilizing the additional information available from the related series and their forecasts.

The following IML procedure statements check whether the specified vector time series model is stationary and simulate a bivariate vector time series from this model to provide test data for the VARMAX procedure:
proc iml;
sig = {1.0 0.5, 0.5 1.25};
phi = {1.2 -0.5, 0.6 0.3};
/* to simulate the vector time series */
call varmasim(y,phi) sigma = sig n = 100 seed = 34657;
cn = {'y1' 'y2'};
create simul1 from y[colname=cn];
append from y;
quit;
The following statements plot the simulated vector time series yt shown in Figure 4.1:
data simul1;
set simul1;
t+1;
proc gplot data=simul1;
symbol1 v = none i = join l = 1;
symbol2 v = none i = join l = 2;
plot y1 * t = 1
y2 * t = 2 / overlay;
run;
|
The following statements fit a VAR(1) model to the simulated data. You first specify the input data set in the PROC VARMAX statement. Then, you use the MODEL statement to read the time series y1 and y2. To estimate a VAR model with mean zero, you specify the order of the autoregressive model with the P= option and the NOINT option. The MODEL statement fits the model to the data and prints parameter estimates and various diagnostic tests. The LAGMAX=3 option is used to print the output for the residual diagnostic checks. For the forecasts, you specify the OUTPUT statement. If you wish to forecast five steps ahead, you use the option LEAD=5.
The VARMAX procedure output is shown in Figure 4.2 through Figure 4.9.
proc varmax data=simul1;
id date interval=year;
model y1 y2 / p=1 noint lagmax=3;
output lead=5;
run;
The VARMAX procedure first displays descriptive statistics and the type of the fitted model for the simulated data, as shown in Figure 4.2.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Figure 4.3 shows the AR coefficient matrix in terms of lag 1, the parameter estimates, and their significances that indicate how well the model fits the data. The first column gives the left-hand-side variable of the equation; the second column, the parameter name ARl_i_j, which indicates the (i,j)th element of the lag l autoregressive coefficient; the last column, the regressor corresponding to its parameter.
The fitted VAR(1) model with estimated standard errors in parentheses is given as

The model can also be written as two univariate regression equations.

| |||||||||||||||||||||||||
The table in Figure 4.4 shows the innovation covariance matrix estimates and the various information criteria results. The smaller value of information criteria fits the data better when it is compared to other models.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||
Figure 4.5 and Figure 4.6 show tests for white noise residuals. The output shows that you cannot reject the hypothesis that the residuals are uncorrelated.
| |||||||||||||||||||||
The VARMAX procedure provides diagnostic checks for
the univariate form of the equations.
The table in Figure 4.7 describes how well each univariate
equation fits the data. From two univariate regression equations
in Figure 4.3,
the values of R2 in the second column
are 0.84 and 0.80 for each equation.
The standard deviations in the third column are
the square root of the diagonal elements
of the covariance matrix from Figure 4.4. The F statistics
are in the fourth column
for hypotheses to test
and
, respectively,
where
is the (i,j)th element of the
matrix
.
The last column shows the p-values of the F statistics.
The results show that each univariate model is significant.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The check for white noise residuals in terms of the univariate equation is shown in Figure 4.8. This output contains information that indicates whether the residuals are correlated and heteroscedastic. In the first table, the second column contains the Durbin-Watson test statistics; the third and fourth columns show the Jarque-Bera normality test statistics and their p-values; the last two columns show F statistics and their p-values for ARCH(1) disturbances. The second table includes F statistics and their p-values for AR(1) to AR(4) disturbances. The results indicate that the residuals are uncorrelated and homoscedastic.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The table in Figure 4.9 gives forecasts and their prediction error covariances.
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 2000 by SAS Institute Inc., Cary, NC, USA. All rights reserved.