VARMAX Procedure

Vector Autoregressive Model with Exogenous Variables

A VAR process can be affected by other observable variables that are determined outside the system of interest. Such variables are called exogenous (independent) variables. Exogenous variables can be stochastic or nonstochastic. The process can also be affected by the lags of exogenous variables. A model used to describe this process is called a VARX(p,s) model.

The VARX(p,s) model is written as

StartLayout 1st Row  bold y Subscript t Baseline equals bold-italic delta plus sigma-summation Underscript i equals 1 Overscript p Endscripts normal upper Phi Subscript i Baseline bold y Subscript t minus i Baseline plus sigma-summation Underscript i equals 0 Overscript s Endscripts normal upper Theta Subscript i Superscript asterisk Baseline bold x Subscript t minus i Baseline plus bold-italic epsilon Subscript t EndLayout

where bold x Subscript t Baseline equals left-parenthesis x Subscript 1 t Baseline comma ellipsis comma x Subscript r t Baseline right-parenthesis prime is an r-dimensional time series vector and normal upper Theta Subscript i Superscript asterisk is a k times r matrix.

For example, a VARX(1,0) model is

StartLayout 1st Row  bold y Subscript t Baseline equals bold-italic delta plus normal upper Phi 1 bold y Subscript t minus 1 Baseline plus normal upper Theta 0 Superscript asterisk Baseline bold x Subscript t Baseline plus bold-italic epsilon Subscript t EndLayout

where bold y Subscript t Baseline equals left-parenthesis y Subscript 1 t Baseline comma y Subscript 2 t Baseline comma y Subscript 3 t Baseline right-parenthesis prime and bold x Subscript t Baseline equals left-parenthesis x Subscript 1 t Baseline comma x Subscript 2 t Baseline right-parenthesis prime.

The following statements fit the VARX(1,0) model to the given data:

data grunfeld;
   input year y1 y2 y3 x1 x2 x3;
   label y1='Gross Investment GE'
         y2='Capital Stock Lagged GE'
         y3='Value of Outstanding Shares GE Lagged'
         x1='Gross Investment W'
         x2='Capital Stock Lagged W'
         x3='Value of Outstanding Shares Lagged W';
datalines;
1935  33.1 1170.6  97.8 12.93  191.5   1.8
1936  45.0 2015.8 104.4 25.90  516.0    .8
1937  77.2 2803.3 118.0 35.05  729.0   7.4
1938  44.6 2039.7 156.2 22.89  560.4  18.1

   ... more lines ...   

/*--- Vector Autoregressive Process with Exogenous Variables ---*/

proc varmax data=grunfeld;
   model y1-y3 = x1 x2 / p=1 lagmax=5
                         printform=univariate
                         print=(impulsx=(all) estimates);
run;

The VARMAX procedure output is shown in Figure 23 through Figure 25.

Figure 23 shows the descriptive statistics for the dependent (endogenous) and independent (exogenous) variables with labels.

Figure 23: Descriptive Statistics for the VARX(1, 0) Model

The VARMAX Procedure

Number of Observations20
Number of Pairwise Missing0

Simple Summary Statistics
VariableTypeNMeanStandard
Deviation
MinMaxLabel
y1Dependent20102.2900048.5845033.10000189.60000Gross Investment GE
y2Dependent201941.32500413.843291170.600002803.30000Capital Stock Lagged GE
y3Dependent20400.16000250.6188597.80000888.90000Value of Outstanding Shares GE Lagged
x1Independent2042.8915019.1101912.9300090.08000Gross Investment W
x2Independent20670.91000222.39193191.500001193.50000Capital Stock Lagged W


Figure 24 shows the parameter estimates for the constant, the lag zero coefficients of exogenous variables, and the lag one AR coefficients. From the schematic representation of parameter estimates, the significance of the parameter estimates can be easily verified. The symbol "C" means the constant and "XL0" means the lag zero coefficients of exogenous variables.

Figure 24: Parameter Estimates for the VARX(1, 0) Model

The VARMAX Procedure

Type of ModelVARX(1,0)
Estimation MethodLeast Squares Estimation

Constant
VariableConstant
y1-12.01279
y2702.08673
y3-22.42110

XLag
LagVariablex1x2
0y11.69281-0.00859
 y2-6.098502.57980
 y3-0.02317-0.01274

AR
LagVariabley1y2y3
1y10.236990.007630.02941
 y2-2.466560.16379-0.84090
 y30.951160.002240.93801

Schematic Representation
Variable/LagCXL0AR1
y1.+....
y2+.+...
y3-..+.+
+ is > 2*std error,  - is < -2*std error,  . is between,  * is N/A


Figure 25 shows the parameter estimates and their significance.

Figure 25: Parameter Estimates for the VARX(1, 0) Model Continued

Model Parameter Estimates
EquationParameterEstimateStandard
Error
t ValuePr > |t|Variable
y1CONST1-12.0127927.47108-0.440.66911
 XL0_1_11.692810.543953.110.0083x1(t)
 XL0_1_2-0.008590.05361-0.160.8752x2(t)
 AR1_1_10.236990.206681.150.2722y1(t-1)
 AR1_1_20.007630.016270.470.6470y2(t-1)
 AR1_1_30.029410.048520.610.5548y3(t-1)
y2CONST2702.08673256.480462.740.01691
 XL0_2_1-6.098505.07849-1.200.2512x1(t)
 XL0_2_22.579800.500565.150.0002x2(t)
 AR1_2_1-2.466561.92967-1.280.2235y1(t-1)
 AR1_2_20.163790.151931.080.3006y2(t-1)
 AR1_2_3-0.840900.45304-1.860.0862y3(t-1)
y3CONST3-22.4211010.31166-2.170.04871
 XL0_3_1-0.023170.20418-0.110.9114x1(t)
 XL0_3_2-0.012740.02012-0.630.5377x2(t)
 AR1_3_10.951160.0775812.260.0001y1(t-1)
 AR1_3_20.002240.006110.370.7201y2(t-1)
 AR1_3_30.938010.0182151.500.0001y3(t-1)


The fitted model is given as

StartLayout 1st Row 1st Column Start 3 By 1 Matrix 1st Row  y Subscript 1 t 2nd Row  y Subscript 2 t 3rd Row  y Subscript 3 t EndMatrix 2nd Column equals 3rd Column Start 6 By 1 Matrix 1st Row  negative 12.013 2nd Row  left-parenthesis 27.471 right-parenthesis 3rd Row  702.086 4th Row  left-parenthesis 256.480 right-parenthesis 5th Row  negative 22.421 6th Row  left-parenthesis 10.312 right-parenthesis EndMatrix plus Start 6 By 2 Matrix 1st Row 1st Column 1.693 2nd Column negative 0.009 2nd Row 1st Column left-parenthesis 0.544 right-parenthesis 2nd Column left-parenthesis 0.054 right-parenthesis 3rd Row 1st Column negative 6.099 2nd Column 2.580 4th Row 1st Column left-parenthesis 5.078 right-parenthesis 2nd Column left-parenthesis 0.501 right-parenthesis 5th Row 1st Column negative 0.023 2nd Column negative 0.013 6th Row 1st Column left-parenthesis 0.204 right-parenthesis 2nd Column left-parenthesis 0.020 right-parenthesis EndMatrix StartBinomialOrMatrix x Subscript 1 t Choose x Subscript 2 t EndBinomialOrMatrix 2nd Row 1st Column Blank 2nd Column plus 3rd Column Start 6 By 3 Matrix 1st Row 1st Column 0.237 2nd Column 0.008 3rd Column 0.029 2nd Row 1st Column left-parenthesis 0.207 right-parenthesis 2nd Column left-parenthesis 0.016 right-parenthesis 3rd Column left-parenthesis 0.049 right-parenthesis 3rd Row 1st Column negative 2.467 2nd Column 0.164 3rd Column negative 0.841 4th Row 1st Column left-parenthesis 1.930 right-parenthesis 2nd Column left-parenthesis 0.152 right-parenthesis 3rd Column left-parenthesis 0.453 right-parenthesis 5th Row 1st Column 0.951 2nd Column 0.002 3rd Column 0.938 6th Row 1st Column left-parenthesis 0.078 right-parenthesis 2nd Column left-parenthesis 0.006 right-parenthesis 3rd Column left-parenthesis 0.018 right-parenthesis EndMatrix Start 3 By 1 Matrix 1st Row  y Subscript 1 comma t minus 1 2nd Row  y Subscript 2 comma t minus 1 3rd Row  y Subscript 3 comma t minus 1 EndMatrix plus Start 3 By 1 Matrix 1st Row  epsilon Subscript 1 t 2nd Row  epsilon Subscript 2 t 3rd Row  epsilon Subscript 3 t EndMatrix EndLayout
Last updated: June 19, 2025