The PANEL Procedure

Lagrange Multiplier (LM) Tests for Cross-Sectional and Time Effects

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.

Honda (1985) and Honda (1991) UMP Test and Moulton and Randolph (1989) SLM Test

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 $H_{0}^{1}: \sigma _{\gamma }^{2}=0$ (no cross-sectional effects) that is based on the pooled estimator. The alternative is the one-sided $H_{1}^{1}: \sigma _{\gamma }^{2}>0$. Let $\hat{u}_{it}$ be the residual from the simple pooled OLS regression and $d=\left(\sum _{i = 1}^{N}\left[\sum _{t=1}^{T}\hat{u}_{it}\right]^{2}\right)/\left(\sum _{i = 1}^{N}\sum _{t=1}^{T}\hat{u}_{it}^{2}\right)$. Then the test statistic is defined as

\begin{equation*} J\equiv \sqrt {\frac{NT}{2(T-1)}}\left[d-1\right]\xrightarrow {H_{0}^{1}}\mathcal{N}\left(0,1\right) \end{equation*}

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

\begin{equation*} \mr{S}\equiv \frac{J-E(J)}{\sqrt {\mr{Var}(J)}}=\frac{d-E(d)}{\sqrt {\mr{Var}(d)}}\rightarrow \mathcal{N}\left(0,1\right) \end{equation*}

Let $D=I_{N}\bigotimes J_{T}$, where $J_{T}$ is the $T\times T$ square matrix of 1s. The mean and variance can be calculated by the formulas

\begin{equation*} E(d)=\mr{Tr}(DM_{Z})/(n-k) \end{equation*}
\begin{equation*} \mr{Var}(d) = 2\{ (n-k)\mr{Tr}\left(DM_{Z}\right)^2-\left[\mr{Tr}\left(DM_{Z}\right)\right]^{2}\} /((n-k)^{2}(n-k+2)) \end{equation*}

where $\mr{Tr}$ denotes the trace of a particular matrix, Z represents the regressors in the pooled model, $n=NT$ is the number of observations, k is the number of regressors, and $M_{Z}= I_{n}-Z(Z’Z)^{-1}Z’$. To calculate $\mr{Tr}(DM_{Z})$, let $Z=\left(Z_{1}’,Z_{2}’,\ldots ,Z_{N}\right)’$. Then

\begin{equation*} \mr{Tr}(DM_{Z})=NT-\mr{Tr}\left(J_{T}\sum _{i=1}^{N}\left[Z_{i}\left(\sum _{j=1}^{N}Z_{j}’Z_{j}\right)^{-1}Z_{i}’\right]\right) \end{equation*}

To test for $H_{0}^{2}: \sigma _{\alpha }^{2}=0$ (no time effects), define $d2=\left(\sum _{t = 1}^{T}\left[\sum _{i=1}^{N}\hat{u}_{it}\right]^{2}\right)/\left(\sum _{t= 1}^{T}\sum _{i=1}^{N}\hat{u}_{it}^{2}\right)$. Then the test statistic is modified as

\begin{equation*} J2\equiv \sqrt {\frac{NT}{2(N-1)}}\left[d2-1\right]\xrightarrow {H_{0}^{2}}\mathcal{N}\left(0,1\right) \end{equation*}

$J2$ can be standardized by $D=J_{N}\bigotimes I_{T}$, and other parameters are unchanged. Therefore,

\begin{equation*} \mr{S2}\equiv \frac{J2-E(J2)}{\sqrt {\mr{Var}(J2)}}=\frac{d2-E(d2)}{\sqrt {\mr{Var}(d2)}}\rightarrow \mathcal{N}\left(0,1\right) \end{equation*}

To test for $H_{0}^{3}: \sigma _{\gamma }^{2}=0,\sigma _{\alpha }^{2}=0$ (no cross-sectional and time effects), the test statistic is $J3 = (J+J2)/\sqrt {2}$ and $D=\sqrt {n/\left(T-1\right)}\left(I_{N}\bigotimes J_{T}\right)/2+\sqrt {n/\left(N-1\right)}\left(J_{N}\bigotimes I_{T}\right)/2$. To standardize, define $d3=\sqrt {n/\left(T-1\right)}d/2+\sqrt {n/\left(N-1\right)}(d2)/2$,

\begin{equation*} \mr{S3}\equiv \frac{J3-E(J3)}{\sqrt {\mr{Var}(J3)}}=\frac{d3-E(d3)}{\sqrt {\mr{Var}(d3)}}\rightarrow \mathcal{N}\left(0,1\right) \end{equation*}

King and Wu (1997) LMMP Test and the SLM Test

King and Wu (1997) derive the locally mean most powerful (LMMP) one-sided test for $H_{0}^{1}$ and $H_{0}^{2}$, which coincides with the Honda (1985) UMP test. Baltagi, Chang, and Li (1992) extend the King and Wu (1997) test for $H_{0}^{3}$ as follows:

\begin{equation*} \mr{KW}\equiv \frac{\sqrt {T-1}}{\sqrt {N+T-2}}\mr{J}+\frac{\sqrt {N-1}}{\sqrt {N+T-2}}\mr{J2}\xrightarrow {H_{0}^{3}}\mathcal{N}\left(0,1\right) \end{equation*}

For the standardization, use $D=I_{N}\bigotimes J_{T}+J_{N}\bigotimes I_{T}$. Define $d_{kw}=d+d2$; then

\begin{equation*} \mr{S_{kw}}\equiv \frac{KW-E(KW)}{\sqrt {\mr{Var}(KW)}}=\frac{d_{kw}-E(d_{kw})}{\sqrt {\mr{Var}(d_{kw})}}\rightarrow \mathcal{N}\left(0,1\right) \end{equation*}

Gourieroux, Holly, and Monfort (1982) LM Test

If one or both variance components ($\sigma _{\gamma }^{2}$ and $\sigma _{\alpha }^{2}$) are small and close to 0, the test statistics J and $J2$ can be negative. Baltagi, Chang, and Li (1992) follow Gourieroux, Holly, and Monfort (1982) and propose a one-sided LM test for $H_{0}^{3}$, which is immune to the possible negative values of J and $J2$. The test statistic is

\begin{equation*} \mr{GHM} \equiv \left\{ \begin{array}{l l} J^{2}+(J2)^{2} & \quad \text {if $J>0$, $J2>0$} \\ J^{2} & \quad \text {if $J>0$, $J2\leq 0$} \\ (J2)^{2} & \quad \text {if $J\leq 0$, $J2>0$} \\ 0 & \quad \text {if $J\leq 0$, $J2\leq 0$} \end{array} \right. \xrightarrow {H_{0}^{3}} \left(\frac{1}{4}\right)\chi ^{2}\left(0\right) + \left(\frac{1}{2}\right)\chi ^{2}\left(1\right) + \left(\frac{1}{4}\right)\chi ^{2}\left(2\right) \end{equation*}

where $\chi ^{2}\left(0\right)$ is the unit mass at the origin.