The MODEL Procedure

Example 25.4 MA(1) Estimation

(View the complete code for this example.)

This example estimates parameters for an MA(1) error process for the Grunfeld model, using both the unconditional least squares and the maximum likelihood methods. The ARIMA procedure estimates for Westinghouse equation are shown for comparison. The output of the following statements is summarized in Output 25.4.1:

proc model outmodel=grunmod;
   var gei whi gef gec whf whc;
   parms ge_int ge_f ge_c wh_int wh_f wh_c;
   label ge_int = 'GE Intercept'
         ge_f   = 'GE Lagged Share Value Coef'
         ge_c   = 'GE Lagged Capital Stock Coef'
         wh_int = 'WH Intercept'
         wh_f   = 'WH Lagged Share Value Coef'
         wh_c   = 'WH Lagged Capital Stock Coef';
   gei = ge_int + ge_f * gef + ge_c * gec;
   whi = wh_int + wh_f * whf + wh_c * whc;
run;

title1 'Example of MA(1) Error Process Using Grunfeld''s Model';
title2 'MA(1) Error Process Using Unconditional Least Squares';

proc model data=grunfeld model=grunmod;
   %ma(gei,1, m=uls);
   %ma(whi,1, m=uls);
   fit whi gei start=( gei_m1 0.8 -0.8) / startiter=2;
run;

Output 25.4.1: PROC MODEL Results by Using ULS Estimation

Example of MA(1) Error Process Using Grunfeld's Model
MA(1) Error Process Using Unconditional Least Squares

The MODEL Procedure

Nonlinear OLS Summary of Residual Errors 
EquationDF ModelDF ErrorSSEMSERoot MSER-SquareAdj R-SqLabel
whi4161874.0117.110.82240.72990.6793Gross Investment WH
resid.whi 161295.680.97548.9986  Gross Investment WH
gei41613835.0864.729.40550.69150.6337Gross Investment GE
resid.gei 167646.2477.921.8607  Gross Investment GE

Nonlinear OLS Parameter Estimates
ParameterEstimateApprox Std Errt ValueApprox
Pr > |t|
Label
ge_int-26.83932.0908-0.840.4153GE Intercept
ge_f0.0382260.01502.540.0217GE Lagged Share Value Coef
ge_c0.1370990.03523.900.0013GE Lagged Capital Stock Coef
wh_int3.6808359.54480.390.7048WH Intercept
wh_f0.0491560.01722.850.0115WH Lagged Share Value Coef
wh_c0.0672710.07080.950.3559WH Lagged Capital Stock Coef
gei_m1-0.876150.1614-5.43<.0001MA(gei) gei lag1 parameter
whi_m1-0.750010.2368-3.170.0060MA(whi) whi lag1 parameter


The estimation summary from the following PROC ARIMA statements is shown in Output 25.4.2:

title2 'PROC ARIMA Using Unconditional Least Squares';

proc arima data=grunfeld;
   identify var=whi cross=(whf whc ) noprint;
   estimate q=1 input=(whf whc) method=uls maxiter=40;
run;

Output 25.4.2: PROC ARIMA Results by Using ULS Estimation

Example of MA(1) Error Process Using Grunfeld's Model
PROC ARIMA Using Unconditional Least Squares

The ARIMA Procedure

Unconditional Least Squares Estimation
ParameterEstimateStandard
Error
t ValueApprox
Pr > |t|
LagVariableShift
MU3.686089.544250.390.70440whi0
MA1,1-0.750050.23704-3.160.00601whi0
NUM10.049140.017232.850.01150whf0
NUM20.067310.070770.950.35570whc0

Constant Estimate3.686077
Variance Estimate80.97535
Std Error Estimate8.998631
AIC149.0044
SBC152.9873
Number of Residuals20


The model stored in Example 25.3 is read in by using the MODEL= option and the moving-average terms are added using the %MA macro.

The MA(1) model using maximum likelihood is estimated by using the following statements:

title2 'MA(1) Error Process Using Maximum Likelihood ';

proc model data=grunfeld model=grunmod;
   %ma(gei,1, m=ml);
   %ma(whi,1, m=ml);
   fit whi gei;
run;

For comparison, the model is estimated by using PROC ARIMA as follows:

title2 'PROC ARIMA Using Maximum Likelihood ';

proc arima data=grunfeld;
   identify var=whi cross=(whf whc) noprint;
   estimate q=1 input=(whf whc) method=ml;
run;

PROC ARIMA does not estimate systems, so only one equation is evaluated.

The estimation results are shown in Output 25.4.3 and Output 25.4.4. The small differences in the parameter values between PROC MODEL and PROC ARIMA can be eliminated by tightening the convergence criteria for both procedures.

Output 25.4.3: PROC MODEL Results by Using ML Estimation

Example of MA(1) Error Process Using Grunfeld's Model
MA(1) Error Process Using Maximum Likelihood

The MODEL Procedure

Nonlinear OLS Summary of Residual Errors 
EquationDF ModelDF ErrorSSEMSERoot MSER-SquareAdj R-SqLabel
whi4161857.5116.110.77460.73230.6821Gross Investment WH
resid.whi 161344.084.00129.1652  Gross Investment WH
gei41613742.5858.929.30710.69360.6361Gross Investment GE
resid.gei 168095.3506.022.4935  Gross Investment GE

Nonlinear OLS Parameter Estimates
ParameterEstimateApprox Std Errt ValueApprox
Pr > |t|
Label
ge_int-25.00234.2933-0.730.4765GE Intercept
ge_f0.037120.01612.300.0351GE Lagged Share Value Coef
ge_c0.1377880.03803.630.0023GE Lagged Capital Stock Coef
wh_int2.9467619.56380.310.7620WH Intercept
wh_f0.0503950.01742.890.0106WH Lagged Share Value Coef
wh_c0.0665310.07290.910.3749WH Lagged Capital Stock Coef
gei_m1-0.785160.1942-4.040.0009MA(gei) gei lag1 parameter
whi_m1-0.693890.2540-2.730.0148MA(whi) whi lag1 parameter


Output 25.4.4: PROC ARIMA Results by Using ML Estimation

Example of MA(1) Error Process Using Grunfeld's Model
PROC ARIMA Using Maximum Likelihood

The ARIMA Procedure

Maximum Likelihood Estimation
ParameterEstimateStandard
Error
t ValueApprox
Pr > |t|
LagVariableShift
MU2.956459.207520.320.74810whi0
MA1,1-0.693050.25307-2.740.00621whi0
NUM10.050360.016862.990.00280whf0
NUM20.066720.069390.960.33630whc0

Constant Estimate2.956449
Variance Estimate81.29645
Std Error Estimate9.016455
AIC148.9113
SBC152.8942
Number of Residuals20