Extracted main text — title through conclusion, appendix excluded. This is what our citation measures are computed over, published so the extraction can be checked by eye.
29,408 characters · 7 sections · 38 citation commands
Refined Cluster Robust Inference
Cluster robust inference has become a standard practice in applied microeconometrics. Robustness to arbitrary dependence within a cluster often comes at the cost of a reduction in the effective sample size. As a result, despite a large overall sample size, the researchers have to account for the non-Gaussian distribution of the $t$-statistic for significance tests as was the case in classical statistics student1908probable. In particular, it is well known that the standard normality-based inference method may lead to over-rejection when the number of clusters is small cameron2015practitioner,comeron/miller:2026,mackinnon2023cluster. Instead of assuming Gaussian regression errors, one can use only mild moment restrictions and derive corrected critical values using higher order asymptotic expansions of Edgeworth1905 and Cramer1928.
In this paper, we propose a new analytical correction to critical values based on inverting the Cram\'er-Edgeworth expansion of the $t$-statistic null distribution. The resulting inference method is third-order asymptotically accurate and robust against heterogeneous cluster dependence. We first derive the Cram\'er-Edgeworth term up to the second order and then adjust the critical value based on the estimated Cram\'er-Edgeworth term.
We develop the approach of hall1983inverting in the setup of linear regression with heterogeneous clusters.\footnote{In this paper, we consider a two-sided alternative hypothesis and the second-order Cram\'er-Edgeworth expansion. As a result, we do not need to apply the Cram\'er-Edgeworth expansion of the estimated coefficient recursively, as in hall1983inverting.} As special sub-cases, our approach also nests inference on the sample mean of non-identically distributed data and regression coefficients in cross-sectional regression. The resulting inference is third-order asymptotically accurate in the sense that the actual test size differs from the prespecified significance level $\alpha$ only by $o(G^{-1})$ with $G$ clusters.
Our simulation studies support this theoretical size control.
A cluster pairs bootstrap might be a popular choice for asymptotic refinement, but our proposed method has a few advantages over the cluster pairs bootstrap.\footnote{The residual bootstrap cannot be applied for cluster robust inference when the sample sizes vary across clusters.} First and most importantly, existing simulation studies show that the cluster pairs bootstrap does not perform well with a small number of clusters. For example, cameron2008bootstrap use a simulation design based on bertrand2004much and explain that the poor performance of the cluster pairs bootstrap is due to the fact that the resampled values of the Gram matrix $X'X$ are nearly singular. Our approach of analytically inverting the Cram\'er-Edgeworth expansion avoids this problem by not resampling $X'X$ while achieving asymptotic refinement. Second, the cluster pairs bootstrap uses independence across $X_1,\ldots,X_G$, while our expansion does not require it. We allow $X_1,\ldots,X_G$ to be correlated, e.g., through adaptive randomization. Third, the standard proof for the cluster pairs bootstrap's asymptotic refinement liu1988bootstrap,hall2013bootstrap excludes discrete regressors. To apply the results from hall2013bootstrap to the regression framework, we need to impose the Cram\'er's condition on the regressors, but the Cram\'er's condition fails for discrete random variables bhattacharya2010normal.\footnote{We could not find a sufficient condition for the cluster pairs bootstrap's asymptotic refinement that allows for discrete regressors and non-identical distributions. A weaker version of the Cram\'er's condition has been proposed, e.g., in bai1991edgeworth, but the cluster pairs bootstrap's asymptotic refinement without the classical Cram\'er's condition is beyond the scope of this paper.} Last, our proposed critical value has a closed-form expression, and for this reason, its computation is much faster than resampling.
A number of other methods have been proposed for the construction of standard errors and confidence intervals. Our proposal is unique in the following sense: it demonstrates good finite-sample performance in the simulation designs based on bertrand2004much, while simultaneously achieving third-order asymptotic refinement. For example, cameron2008bootstrap propose the wild cluster bootstrap and demonstrate its good finite-sample properties in simulations. djogbenou2019asymptotic provide the asymptotic size control of the wild cluster bootstrap, and canay2021wild show the size control of the wild cluster bootstrap even with a fixed number of the clusters as long as there are a large number of observations per cluster. However, Theorem 5.2 of djogbenou2019asymptotic shows that the wild cluster bootstrap does not achieve asymptotic refinement when the score has non-zero skewness. Our simulation results in Section (ref) confirm this result of djogbenou2019asymptotic, and our proposed method demonstrates better size control than the wild cluster bootstrap in such cases.
This paper is also related to the use of the $t$-distribution for the critical value and an adjustment of degrees of freedom in the $t$-distribution mccaffrey2003bias,bester2011inference,imbens2016robust,young2016improved,hansen2021exact,hansen2022jackknife. These papers assume normal and homoscedastic errors. On the other hand, our approach does not rely on normal errors or a specific covariance structure for the error terms within a cluster.
The paper proceeds as follows. Section (ref) formally introduces the regression model with clustered errors and the new critical value. Section (ref) presents Monte Carlo simulations for the proposed critical value and existing ones. Section (ref) concludes. The appendix collects all the proofs and additional results.
We have the dataset of $\{(Y_{ig},X_{ig}):i=1,\ldots,N_g,\ g=1,\ldots,G\}$ and consider the regression model $Y_{ig}=X_{ig}'\beta+u_{ig}$ with $E[u_{ig}\mid X_{1g},\ldots,X_{N_gg}]=0$ and $\dim(X_{ig})=k$. We assume the observations $\{(Y_{ig},X_{ig}):i=1,\ldots,N_g\}$ are independent across $g=1,\ldots,G$. To emphasize the fact that we use the independence across $g$, we use the matrix notation with $Y_g=(Y_{1g},\ldots,Y_{N_gg})'$ and $X_g=(X_{1g}',\ldots,X_{N_gg}')'$, and write the regression model succinctly as $$ Y_{g}=X_{g}\beta+u_{g}\mbox{ with }E[u_{g}\mid X_{g}]=0. $$ For a fixed vector $\lambda$ and a hypothesized value $c_0$ for $\lambda'\beta$, we consider the hypothesis testing problem of $$ H_0:\lambda'\beta=c_0\mbox{ vs }H_1: \lambda'\beta\ne c_0 $$ with the significance level $\alpha\in (0,1)$. The OLS estimator for $\beta$ is $$ \hat{\beta}=\left(\frac{1}{G}\sum_{g=1}^GX_g'X_g\right)^{-1}\left(\frac{1}{G}\sum_{g=1}^GX_g' Y_g\right). $$ Consider an asymptotic variance estimator for $\lambda'\hat{\beta}$ defined by $$ \hat\sigma^2=\frac{1}{G}\sum_{g=1}^G(\lambda'\Pi X_g'\hat{u}_g)^2\mbox{ with }\Pi=\left(\frac{1}{G}\sum_{g=1}^GX_{g}'X_{g}\right)^{-1}\mbox{ and }\hat{u}_g=Y_g-X_g\hat\beta. $$ Define the $t$-statistic by $$ t=\sqrt{G}\frac{\lambda'\hat{\beta}-c_0}{\hat\sigma}. $$ From now on, we estimate the null distribution for the above $t$-statistic $t$ and construct a critical value for it. We treat the covariates $\mathbf{X}=\{X_{g}\}^\infty_{g=1}$ as fixed, so we investigate $Pr(|t|\leq z\mid\mathbf{X}=\mathbf{x})$ for a given sequence of constants $\mathbf{x}=\{x_{g}\}^\infty_{g=1}$.
We consider the numerator and denominator of $$ t=\sqrt{G}\frac{(\lambda'\hat{\beta}-c_0)/\sigma}{\hat\sigma/\sigma} $$ under the null hypothesis $H_0$, where $\sigma^2$ is the asymptotic variance for $\lambda'\hat{\beta}$ defined by $$ \sigma^2=\frac{1}{G}\sum_{g=1}^G\sigma_g^2\mbox{ with }\sigma_{g}^2=E\left[(\lambda'\Pi X_g'u_g)^2\mid\mathbf{X}=\mathbf{x}\right]. $$ The numerator has the linear representation of $$ (\lambda'\hat{\beta}-c_0)/\sigma=\frac{1}{G}\sum_{g=1}^G\omega_{1g}\mbox{ with } \omega_{1g}=\sigma^{-1}\lambda'\Pi X_g'u_g. $$ The square of the denominator $\hat\sigma^2/\sigma^2$ has the following quadratic representation. The proof is given in Section (ref).
To approximate the null distribution for the $t$-statistic, we approximate the distribution of $\frac{1}{\sqrt{G}}\sum_{g=1}^G(\omega_{1g},\omega_{2g}',\omega_{3g})'$ up to $o(G^{-1})$. For this purpose, we use the following moments of $\omega_{1g}$ and $\omega_{2g}$:
We assume these moments are bounded.
The (second-order) Cram\'er-Edgeworth expansion for the $t$-statistic's null distribution is expressed under the following assumption, for which we provide a sufficient condition in Section (ref).
The function $q_2(z)$ in the (second-order) Cram\'er-Edgeworth expansion is unknown since we do not know the population objects of $\mu_{1,2}'\mu_{1,2},\mu_{2,2},\mu_{1,1,1},\mu_{1,1,1,1}$. We can estimate them using their sample analogs:
where
We can construct the estimator $\hat{q}_2(z)$ for $q_2(z)$ using these sample analogs. Our proposed critical value is $$ \hat{cv}=\Phi^{-1}(1-\alpha/2)- G^{-1}\hat q_2(\Phi^{-1}(1-\alpha/2)) $$ and the resulting confidence interval for $\lambda'\beta$ is $\lambda'\hat\beta\pm \hat{cv}\sqrt{\hat\sigma/G}$.
We impose the following conditions on moments.
The second condition makes the characteristic function of $\frac{1}{G}\sum_{g=1}^G\omega_g$ infinitely differentiable and simplifies the proofs. We may weaken it to the bounded moment condition up to a certain order by truncating $\omega_g$ (cf., hall2013bootstrap; bhattacharya1978validity). The bounded higher-order moments are crucial for our inference because we estimate the population objects of $\mu_{1,2},\mu_{2,2},\mu_{1,1,1},\mu_{1,1,1,1}$. For example, $\mu_{1,1,1,1}$ is the average fourth moment of $\omega_{1g}$. In the proof, we use the fourth moment of its estimator and thus require bounded 16th moments.
In Theorem (ref) below, we show the size control for the proposed critical value. Note that even if Assumption (ref) fails, we can still achieve size control with an asymptotic approximation error of the standard rate $O(G^{-1})$, as long as asymptotic normality holds. This point resembles the efficiency gain of the feasible generalized least squares estimation comeron/miller:2026.
The proof is provided in Section (ref).
In this subsection, we provide a sufficient condition for the Cram\'er-Edgeworth expansion in Assumption (ref).
This assumption removes the redundant or duplicated elements from $\omega_{g}$. This removal is necessary to normalize the random variable $\frac{1}{\sqrt{G}}\sum_{g=1}^G\eta_g$ by using the matrix square root of the variance matrix $\mathbf{V}_G$.
The assumption is the mean weak Cram\'er's condition proposed in angst2017weak. We provide a sufficient condition for Assumption (ref).
The proof is given in Section (ref).
The above three assumptions constitute a sufficient condition for Assumption (ref).
The proof is given in Section (ref).
In this section, we investigate the finite-sample performance of the critical value proposed in Section (ref) using simulated data. We compare our method (denoted by “Analytical” in the figures) with a few existing methods, such as (i) the $t_{G-1}$ critical value (“Student”), (ii) the restricted wild cluster bootstrap with Rademacher weights by cameron2008bootstrap (“CWB”), and (iii) the pairs percentile-$t$ cluster bootstrap (“Pairs”). We use 10,000 simulations and 1000 draws for bootstrap procedures. We consider two designs that are challenging for existing methods but can be accommodated well using our analytic corrections. The first design features binary regressors, which is challenging for the pairs cluster bootstrap, while the second design features skewed errors, which is challenging for the cluster wild bootstrap.
In this section, we follow the simulation design from bertrand2004much and cameron2008bootstrap. It uses a state-year panel of excess earnings from 1979 to 1999 based on the Current Population Survey.\footnote{We use the data from the replication package of cameron2015practitioner: \url{https://cameron.econ.ucdavis.edu/research/papers.html} In particular, this simulation exercise uses the variable lnwage from CPS_panel.dta from 1979 to 1999.} For each simulation draw, we randomly select $G$ out of 50 states with replacement. We randomly select the policy change time uniformly from $\{1984,\ldots,1993\}$ and assume that half of the $G$ states experience the policy change after the selected time period. We construct the policy dummy variable accordingly. By definition, this policy dummy variable has a zero coefficient in the population. We regress the excess earnings on the policy dummy, the year dummies, and the state dummies, and conduct the significance test for the coefficient of the policy dummy variable.
In the data generating process of this section, the skewness of the score is close to zero (with $\hat\mu_{1,1,1}=0.02$ for $G=10^4$). Although the Cram\'er condition does not hold for this design because all the variables are discrete bhattacharya2010normal, we can consider whether a critical value accounts for the skewness and kurtosis of the $t$-statistic, which are the key components of the second-order Cram\'er-Edgeworth expansion. Our proposed method matches these moments by estimating them explicitly. At the same time, the wild cluster bootstrap approximates the skewness and kurtosis well because it uses zero skewness and estimates the kurtosis consistently djogbenou2019asymptotic.
Figure (ref) shows the rejection probabilities for different methods. As documented in cameron2008bootstrap, the pairs cluster bootstrap under-rejects for small values of $G$ (e.g., $G=6, 10$), while the inference based on the $t_{G-1}$ critical value over-rejects. All methods control the size approximately when $G$ is sufficiently large (e.g., $G=50$). Our proposed method exhibits comparable performance to the wild cluster bootstrap, even for a small value of $G=10$.
To compare the methods when the error has large skewness, we consider the case with $N_g=1$, $X_{ig}=1$, and $Y_{ig}$ follows the exponential distribution with unit mean. This design is used in Section 3 of hall1983inverting for one-sided tests. Since the error has a skewness of $2$, Theorem 5.2 of djogbenou2019asymptotic implies that the wild cluster bootstrap does not have asymptotic refinement in this case.
Figure (ref) shows the rejection probabilities for different methods with the skewed error distribution. Again, the rejection probabilities of all the methods approach the prespecified significance level ($5\%$) as $G$ increases, which confirms their asymptotic validity. However, the finite-sample performance differs. The rejection probabilities of our proposed method approach $5\%$ faster than the wild cluster bootstrap. This is consistent with the theoretical fact that the wild cluster bootstrap does not have asymptotic refinement in this data distribution. In contrast, our analytical approach and the pairs cluster bootstrap both achieve the asymptotic refinement. It explains why these methods are similar to each other and much closer to nominal size than the other two methods in Figure (ref).
In this paper, we propose an inference method for linear regression with clustered errors, and it achieves third-order asymptotic refinements. Unlike the cluster pairs bootstrap, it does not resample the Gram matrix of $\frac{1}{G}\sum_{g=1}^GX_g'X_g$, thus avoiding the small-sample issues of the cluster pairs bootstrap cameron2008bootstrap. Our simulation results show favorable finite-sample performance of the proposed method. Notably, it works comparably to the wild bootstrap in the simulation design based on bertrand2004much and for some designs (with skewed distributions) it has better size control than the wild bootstrap.