The MODEL Procedure

Example 24.2 A Consumer Demand Model

(View the complete code for this example.)

This example shows the estimation of a system of nonlinear consumer demand equations based on the translog functional form by using seemingly unrelated regression (SUR). Expenditure shares and corresponding normalized prices are given for three goods.

Since the shares add up to one, the system is singular; therefore, one equation is omitted from the estimation process. The choice of which equation to omit is arbitrary. The nonlinear system is first estimated in unrestricted form by the following statements:

title1 'Consumer Demand--Translog Functional Form';
title2 'Asymmetric Model';

proc model data=tlog1;
   endogenous share1 share2;
   parms a1 a2 b11 b12 b13 b21 b22 b23 b31 b32 b33;

   bm1 = b11 + b21 + b31;
   bm2 = b12 + b22 + b32;
   bm3 = b13 + b23 + b33;
   lp1 = log(p1);
   lp2 = log(p2);
   lp3 = log(p3);
   share1 = ( a1 + b11 * lp1 + b12 * lp2 + b13 * lp3 ) /
            ( -1 + bm1 * lp1 + bm2 * lp2 + bm3 * lp3 );
   share2 = ( a2 + b21 * lp1 + b22 * lp2 + b23 * lp3 ) /
            ( -1 + bm1 * lp1 + bm2 * lp2 + bm3 * lp3 );

   fit share1 share2
       start=( a1 -.14 a2 -.45 b11 .03 b12 .47 b22 .98 b31 .20
               b32 1.11 b33 .71 ) / outsused=smatrix sur;
run;

A portion of the printed output produced by this example is shown in Output 24.2.1 through Output 24.2.3.

Output 24.2.1: Translog Demand Model Summary

Consumer Demand--Translog Functional Form
Asymmetric Model

The MODEL Procedure

Model Summary
Model Variables2
Endogenous2
Parameters11
Equations2
Number of Statements8

Model Variablesshare1 share2
Parameters(Value)a1(-0.14) a2(-0.45) b11(0.03) b12(0.47) b13 b21 b22(0.98) b23 b31(0.2) b32(1.11) b33(0.71)
Equationsshare1 share2

The 2 Equations to Estimate
share1 =F(a1, b11, b12, b13, b21, b22, b23, b31, b32, b33)
share2 =F(a2, b11, b12, b13, b21, b22, b23, b31, b32, b33)


Output 24.2.2: Estimation Summary for the Unrestricted Model

NOTE: At SUR Iteration 2 CONVERGE=0.001 Criteria Met.

Consumer Demand--Translog Functional Form
Asymmetric Model

The MODEL Procedure
SUR Estimation Summary

Data Set Options
DATA=TLOG1
OUTSUSED=SMATRIX

Minimization Summary
Parameters Estimated11
MethodGauss
Iterations2

Final Convergence Criteria
R0.00016
PPC(b11)0.00116
RPC(b11)0.012106
Object2.921E-6
Trace(S)0.000078
Objective Value1.749312

Observations
Processed
Read44
Solved44


Output 24.2.3: Estimation Results for the Unrestricted Model

Consumer Demand--Translog Functional Form
Asymmetric Model

The MODEL Procedure

Nonlinear SUR Summary of Residual Errors 
EquationDF ModelDF ErrorSSEMSERoot MSER-SquareAdj R-Sq
share15.538.50.001660.0000430.006560.80670.7841
share25.538.50.001350.0000350.005920.94450.9380

Nonlinear SUR Parameter Estimates
ParameterEstimateApprox Std Errt ValueApprox
Pr > |t|
a1-0.148810.00225-66.08<.0001
a2-0.457760.00297-154.29<.0001
b110.0483820.04980.970.3379
b120.436550.05028.70<.0001
b130.2485880.05164.82<.0001
b210.5863260.20892.810.0079
b220.7597760.25652.960.0052
b231.3038210.23285.60<.0001
b310.2978080.15041.980.0550
b320.9615510.16335.89<.0001
b330.82910.15565.33<.0001

Number of ObservationsStatistics for System
Used44Objective1.7493
Missing0Objective*N76.9697


The model is then estimated under the restriction of symmetry (), as shown in the following statements:

title2 'Symmetric Model';
proc model data=tlog1;
   var share1 share2 p1 p2 p3;
   parms a1 a2 b11 b12 b22 b31 b32 b33;
   bm1 = b11 + b12 + b31;
   bm2 = b12 + b22 + b32;
   bm3 = b31 + b32 + b33;
   lp1 = log(p1);
   lp2 = log(p2);
   lp3 = log(p3);
   share1 = ( a1 + b11 * lp1 + b12 * lp2 + b31 * lp3 ) /
            ( -1 + bm1 * lp1 + bm2 * lp2 + bm3 * lp3 );
   share2 = ( a2 + b12 * lp1 + b22 * lp2 + b32 * lp3 ) /
            ( -1 + bm1 * lp1 + bm2 * lp2 + bm3 * lp3 );
   fit share1 share2
       start=( a1 -.14 a2 -.45 b11 .03 b12 .47 b22 .98 b31 .20
               b32 1.11 b33 .71 ) / sdata=smatrix sur;
run;

A portion of the printed output produced for the symmetry restricted model is shown in Output 24.2.4 and Output 24.2.5.

Output 24.2.4: Model Summary from the Restricted Model

Consumer Demand--Translog Functional Form
Symmetric Model

The MODEL Procedure

The 2 Equations to Estimate
share1 =F(a1, b11, b12, b22, b31, b32, b33)
share2 =F(a2, b11, b12, b22, b31, b32, b33)


Output 24.2.5: Estimation Results for the Restricted Model

Consumer Demand--Translog Functional Form
Symmetric Model

The MODEL Procedure

Nonlinear SUR Summary of Residual Errors 
EquationDF ModelDF ErrorSSEMSERoot MSER-SquareAdj R-Sq
share14400.001660.0000410.006440.80660.7920
share24400.001390.0000350.005900.94280.9385

Nonlinear SUR Parameter Estimates
ParameterEstimateApprox Std Errt ValueApprox
Pr > |t|
a1-0.146840.00135-108.99<.0001
a2-0.45970.00167-275.34<.0001
b110.028860.007413.890.0004
b120.4678270.011540.57<.0001
b220.9700790.017754.87<.0001
b310.2081430.0061433.88<.0001
b321.1024150.012786.51<.0001
b330.6942450.016841.38<.0001

Number of ObservationsStatistics for System
Used44Objective1.7820
Missing0Objective*N78.4097


Hypothesis testing requires that the S matrix from the unrestricted model be imposed on the restricted model, as explained in the section Tests on Parameters. The S matrix saved in the data set SMATRIX is requested by the SDATA= option.

A chi-square test is used to see if the hypothesis of symmetry is accepted or rejected. (Oc–Ou) has a chi-square distribution asymptotically, where Oc is the constrained OBJECTIVE*N and Ou is the unconstrained OBJECTIVE*N. The degrees of freedom is equal to the difference in the number of free parameters in the two models.

In this example, Ou is 76.9697 and Oc is 78.4097, resulting in a difference of 1.44 with 3 degrees of freedom. You can obtain the probability value by using the following statements:

data _null_;
   /* probchi( reduced-full, n-restrictions )*/
   p = 1-probchi( 1.44, 3 );
   put p=;
run;

The output from this DATA step run is . With this p-value you cannot reject the hypothesis of symmetry. This test is asymptotically valid.

Last updated: November 05, 2018