For random one-way and two-way error component models, the Lagrange multiplier test for the existence of cross-sectional or time effects or both is based on the residuals from the restricted model (that is, the pooled model). For more information about the Breusch-Pagan LM test, see the section Specification Tests.
The Breusch-Pagan LM test is two-sided when the variance components are nonnegative. For a one-sided alternative hypothesis, Honda (1985) suggests a uniformly most powerful (UMP) LM test for (no cross-sectional effects) that is based on the pooled estimator. The alternative is the one-sided . Let be the residual from the simple pooled OLS regression and . Then the test statistic is defined as
The square of J is equivalent to the Breusch and Pagan (1980) LM test statistic. Moulton and Randolph (1989) suggest an alternative standardized Lagrange multiplier (SLM) test to improve the asymptotic approximation for Honda’s one-sided LM statistic. The SLM test’s asymptotic critical values are usually closer to the exact critical values than are those of the LM test. The SLM test statistic standardizes Honda’s statistic by its mean and standard deviation. The SLM test statistic is
Let , where is the square matrix of 1s. The mean and variance can be calculated by the formulas
where denotes the trace of a particular matrix, Z represents the regressors in the pooled model, is the number of observations, k is the number of regressors, and . To calculate , let . Then
To test for (no time effects), define . Then the test statistic is modified as
can be standardized by , and other parameters are unchanged. Therefore,
To test for (no cross-sectional and time effects), the test statistic is and . To standardize, define ,
King and Wu (1997) derive the locally mean most powerful (LMMP) one-sided test for and , which coincides with the Honda (1985) UMP test. Baltagi, Chang, and Li (1992) extend the King and Wu (1997) test for as follows:
For the standardization, use . Define ; then
If one or both variance components ( and ) are small and close to 0, the test statistics J and can be negative. Baltagi, Chang, and Li (1992) follow Gourieroux, Holly, and Monfort (1982) and propose a one-sided LM test for , which is immune to the possible negative values of J and . The test statistic is
where is the unit mass at the origin.