For a linear hypothesis of the form R where is and is , the statistic with degrees of freedom is computed as

However, it is also possible to write the statistic as

where
is the residual vector from the restricted regression
is the residual vector from the unrestricted regression
is the number of restrictions
are the degrees of freedom, is the number of observations, and is the number of parameters in the model
The Wald, likelihood ratio (LR) and Lagrange multiplier (LM) tests are all related to the test. You use this relationship of the test to the likelihood ratio and Lagrange multiplier tests. The Wald test is calculated from its definition.
The Wald test statistic is:

The advantage of calculating Wald in this manner is that it enables you to substitute a heteroscedasticitycorrected covariance matrix for the matrix . PROC PANEL makes such a substitution if you request the HCCME option in the MODEL statement.
The likelihood ratio is:

The Lagrange multiplier test statistic is:

where JF represents the number of restrictions multiplied by the result of the test.
Note that only the Wald is changed when the HCCME option is selected. The LR and LM tests are unchanged.
The distribution of these test statistics is the with degrees of freedom equal to the number of restrictions imposed (). The three tests are asymptotically equivalent, but they have differing small sample properties. Greene (2000, p. 392) and Davidson and MacKinnon (1993, pg. 456458) discuss the small sample properties of these statistics.