SYSLIN Procedure

Testing Parameters

You can test linear hypotheses about the model parameters with TEST and STEST statements. The TEST statement tests hypotheses about parameters in the equation specified by the preceding MODEL statement. The STEST statement tests hypotheses that relate parameters in different models.

For example, the following statements test the hypothesis that the price coefficient in the demand equation is equal to 0.015:

proc syslin data=in 3sls;
   endogenous  p;
   instruments y u s;
   demand: model q = p y s;
   test_1: test p = .015;
   supply: model q = p u;
run;

The TEST statement results are shown in Figure 10. This reports an F test for the hypothesis specified by the TEST statement. In this case, the F statistic is 6.79 (3.879/.571) with 1 and 113 degrees of freedom. The p-value for this F statistic is 0.0104, which indicates that the hypothesis tested is almost but not quite rejected at the 0.01 level. For more information, see the section TEST Statement.

Figure 10: TEST Statement Results

The SYSLIN Procedure
Three-Stage Least Squares Estimation

System Weighted MSE0.5711
Degrees of freedom113
System Weighted R-Square0.9627

ModelDEMAND
Dependent Variableq
LabelQuantity

Parameter Estimates
VariableDFParameter
Estimate
Standard
Error
t ValuePr > |t|Variable
Label
Intercept11.9802691.1691761.690.0959Intercept
p1-1.176540.605015-1.940.0568Price
y10.4041170.1171793.450.0011Income
s10.3592040.0850774.22<.0001Price of Substitutes

Test Results
Num DFDen DFF ValuePr > FLabel
11136.790.0104TEST_1


To test hypotheses that involve parameters in different equations, use the STEST statement. Specify the parameters in the linear hypothesis as model-label.regressor-name. (If the MODEL statement does not have a label, you can use the dependent variable name as the label for the model, provided the dependent variable uniquely labels the model.)

For example, the following statements test the hypothesis that the income coefficient in the demand equation is 0.01 times the unit cost coefficient in the supply equation:

proc syslin data=in 3sls;
   endogenous  p;
   instruments y u s;
   demand: model q = p y s;
   supply: model q = p u;
   stest1: stest demand.y = .01 * supply.u;
run;

The STEST statement results are shown in Figure 11. The form and interpretation of the STEST statement results are like the TEST statement results. In this case, the F test produces a p-value less than 0.0001 and strongly rejects the hypothesis tested. For more information, see the section STEST Statement.

Figure 11: STEST Statement Results

The SYSLIN Procedure
Three-Stage Least Squares Estimation

System Weighted MSE0.5711
Degrees of freedom113
System Weighted R-Square0.9627

ModelDEMAND
Dependent Variableq
LabelQuantity

Parameter Estimates
VariableDFParameter
Estimate
Standard
Error
t ValuePr > |t|Variable
Label
Intercept11.9802691.1691761.690.0959Intercept
p1-1.176540.605015-1.940.0568Price
y10.4041170.1171793.450.0011Income
s10.3592040.0850774.22<.0001Price of Substitutes

ModelSUPPLY
Dependent Variableq
LabelQuantity

Parameter Estimates
VariableDFParameter
Estimate
Standard
Error
t ValuePr > |t|Variable
Label
Intercept1-0.518780.490999-1.060.2952Intercept
p11.3330800.05927122.49<.0001Price
u1-1.146230.243491-4.71<.0001Unit Cost

Test Results
Num DFDen DFF ValuePr > FLabel
111322.460.0001STEST1


You can combine TEST and STEST statements with RESTRICT and SRESTRICT statements to perform hypothesis tests for restricted models. Of course, the validity of the TEST and STEST statement results depends on the correctness of any restrictions you impose on the estimates.

Last updated: June 19, 2025