For linear regression models with cross-section or panel data, it is natural to assume that the disturbances are clustered in two dimensions. However, the finite-sample properties of two-way cluster-robust tests and confidence intervals are often poor. We discuss several ways to improve inference with two-way clustering. Two of these are existing methods for avoiding, or at least ameliorating, the problem of undefined standard errors when a cluster-robust variance matrix estimator (CRVE) is not positive definite. One is a new method that always avoids the problem. More importantly, we propose a family of new two-way CRVEs based on the cluster jackknife and prove that they yield valid inferences asymptotically. Simulations for models with two-way fixed effects suggest that, in many cases, the cluster-jackknife CRVE combined with our new method yields surprisingly accurate inferences. We provide a software package, twowayjack for Stata, that implements our recommended variance estimator.
如果在应用经济学中经常使用多向聚类稳健标准误,令人惊讶的是,很少有理论结果证明这种做法是正确的。本文旨在填补这一空白。我们首先证明,在几乎与i.i.d.相同的条件下。数据,弱收敛的经验过程下多路聚类。这一结果意味着样本平均值的中心极限定理,但也是显示非线性估计,如GMM估计的渐近正态性的关键。然后,我们建立了各种渐近方差估计的一致性,包括Cameron et al.(2011)的估计,但也有一个新的估计,通过构造是正的。接下来,我们展示了一般的一致性,为线性和非线性估计,鸽子洞的引导,一个rescent计划,适用于多路聚类。蒙特卡罗模拟表明,基于我们两种首选方法的推断即使在非常少的聚类情况下也可能是准确的,并且显著改进了基于Cameron等人(2011)的推断。