CPANEL Procedure

Hausman Specification Tests

For models that include random effects, the CPANEL procedure outputs the results of the Hausman (1978) specification test. This test was also proposed by Wu (1973) and further extended in Hausman and Taylor (1982).

Consider two estimators, ModifyingAbove bold-italic beta With caret Subscript e and ModifyingAbove bold-italic beta With caret Subscript c, which under the null hypothesis are both consistent but only ModifyingAbove bold-italic beta With caret Subscript e is asymptotically efficient. Under the alternative hypothesis, only ModifyingAbove bold-italic beta With caret Subscript c is consistent. The m statistic is

m equals left-parenthesis ModifyingAbove bold-italic beta With caret Subscript c Baseline minus ModifyingAbove bold-italic beta With caret Subscript e Baseline right-parenthesis Superscript prime Baseline left-parenthesis ModifyingAbove bold upper Sigma With caret Subscript c Baseline minus ModifyingAbove bold upper Sigma With caret Subscript e Baseline right-parenthesis Superscript negative 1 Baseline left-parenthesis ModifyingAbove bold-italic beta With caret Subscript c Baseline minus ModifyingAbove bold-italic beta With caret Subscript e Baseline right-parenthesis

where ModifyingAbove bold upper Sigma With caret Subscript c and ModifyingAbove bold upper Sigma With caret Subscript e are estimates of the asymptotic covariance matrices of ModifyingAbove bold-italic beta With caret Subscript c and ModifyingAbove bold-italic beta With caret Subscript e. The statistic m follows a chi squared distribution with k degrees of freedom, where k is the rank of left-parenthesis ModifyingAbove bold upper Sigma With caret Subscript c Baseline minus ModifyingAbove bold upper Sigma With caret Subscript e Baseline right-parenthesis Superscript negative 1. This rank is normally equal to the dimension of ModifyingAbove bold-italic beta With caret Subscript c Baseline minus ModifyingAbove bold-italic beta With caret Subscript e, but is reduced when regressors that are constant within cross sections are dropped from the fixed-effects model.

The null hypothesis is that the effects are independent of the regressors. Under the null hypothesis, the fixed-effects estimator is consistent yet inefficient, whereas the random-effects estimator is both consistent and efficient. Failure to reject the null hypothesis favors the random-effects specification.

Last updated: July 09, 2026