Asymptotic Theory for Clustered Samples
Bruce E. Hansen, Seojeong Lee

TL;DR
This paper develops a comprehensive asymptotic distribution theory for large samples of clustered data, accommodating heterogeneity and unbounded cluster sizes, and extends classical results to complex clustered sampling scenarios.
Contribution
It generalizes classical asymptotic results to clustered data with heterogeneous and unbounded clusters, providing a unified framework for various estimators.
Findings
Unified asymptotic distribution theory for clustered data
Conditions that include classical i.i.d. results as special cases
Applicable to linear, 2SLS, nonlinear MLE, and GMM estimators
Abstract
We provide a complete asymptotic distribution theory for clustered data with a large number of independent groups, generalizing the classic laws of large numbers, uniform laws, central limit theory, and clustered covariance matrix estimation. Our theory allows for clustered observations with heterogeneous and unbounded cluster sizes. Our conditions cleanly nest the classical results for i.n.i.d. observations, in the sense that our conditions specialize to the classical conditions under independent sampling. We use this theory to develop a full asymptotic distribution theory for estimation based on linear least-squares, 2SLS, nonlinear MLE, and nonlinear GMM.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Asymptotic Theory for Clustered Samples
\begin{array}[c]{ccc}\text{Bruce E. Hansen}\thanks{Hansen thanks the National Science Foundation and the Phipps Chair for research support.}&&\text{Seojeong Lee}\thanks{Lee acknowledges that this research was supported under the Australian Research Council Discovery Early Career Researcher Award (DECRA) funding scheme (project number DE170100787).}\\ \text{University of Wisconsin}&&\text{University of New South Wales}\end{array} Hansen thanks the National Science Foundation and the Phipps Chair for research support.Lee acknowledges that this research was supported under the Australian Research Council Discovery Early Career Researcher Award (DECRA) funding scheme (project number DE170100787).
(February 2019111We thank the Co-Editor Han Hong and two referees for helpful comments on a previous version, and Morten Nielsen and James MacKinnon for valuable conversations and suggestions.)
Abstract
We provide a complete asymptotic distribution theory for clustered data with a large number of independent groups, generalizing the classic laws of large numbers, uniform laws, central limit theory, and clustered covariance matrix estimation. Our theory allows for clustered observations with heterogeneous and unbounded cluster sizes. Our conditions cleanly nest the classical results for i.n.i.d. observations, in the sense that our conditions specialize to the classical conditions under independent sampling. We use this theory to develop a full asymptotic distribution theory for estimation based on linear least-squares, 2SLS, nonlinear MLE, and nonlinear GMM.
1 Introduction
Clustered samples are widely used in current applied econometric practice. Despite this dominance, there is little formal large-sample theory for estimation and inference. This paper provides such a foundation. We develop a complete, rigorous, and easily-interpretable asymptotic distribution theory for the “large number of clusters” framework. Our theory allows heterogeneous and growing cluster sizes, but requires that the number of clusters grows with sample size . Our core theory provides a weak law of large numbers (WLLN), central limit theorem (CLT), and consistent clustered variance estimation for clustered sample means. We also provide uniform laws of large numbers and uniform consistent clustered variance estimation appropriate for the distribution theory of nonlinear econometric estimators.
We apply this core theory to develop large sample distribution theory for standard econometric estimators: linear least-squares, 2SLS, MLE, and GMM. For each, we provide conditions for consistent estimation, asymptotic normality, consistent covariance matrix estimation, and asymptotic distributions for t-ratios and Wald statistics. The theory provided in this paper is the first formal theory for such econometric estimators allowing for clustered dependence.
Our assumptions are minimal, requiring only uniform integrability for the WLLN and squared uniform integrability for the CLT and clustered covariance matrix estimators, plus the requirement that individual clusters are asymptotically negligible. Our results show that there are inherent trade-offs in the conditions between the allowed degree of heterogeneity in cluster sizes and the number of finite moments. These trade-offs are least restrictive for the WLLN, are more restrictive for the CLT and consistent cluster covariance matrix estimation, and are strongest for CLTs applied to clustered second moments. These trade-offs do not arise in the independent sampling context.
We show that under clustering the convergence rate depends on the degree of clustered dependence. Convergence rates may equal the square root of the sample size, the square root of the number of clusters, be a rate in between these two, or even slower than both. Our assumptions and theory allow for these possibilities. This is in contrast to the existing literature, which imposes specific rate assumptions. One useful finding is that the rate does not need to be known by the user; the asymptotic distribution of t-ratios and Wald statistics does not depend on the underlying rate of convergence. This generalizes similar results in C. Hansen (2007) and related results in Tabord-Meehan (2018).
This paper makes the following technical contributions. We show that the key to extending the classical WLLN and CLT to cluster-level data is developing uniform integrability bounds for cluster sums. To allow for arbitrary within-cluster dependence, this means that such bounds will be scaled by cluster sizes. This leads to bounds on the degree of cluster size heterogeneity which can be allowed under cluster dependence. Some of the most difficult technical work presented here is the extension of classical results to clustered covariance matrix estimators. These are not sample averages, but rather average across clusters of squared cluster sums. Handling such estimators requires a new technical treatment.
Clustered dependence in econometrics dates to the work of Moulton (1986, 1990), Liang and Zeger (1986), and in particular Arellano (1987), who proposed the popular cluster-robust covariance matrix estimator. The method was popularized by the implementation in Stata by Rogers (1994) and the widely-cited paper of Bertrand, Duflo and Mullainathan (2004). Surveys can be found in Wooldridge (2003), Cameron and Miller (2011, 2015), MacKinnon (2012, 2016), and textbook treatments in Angrist and Pischke (2009) and Wooldridge (2010).
The “large ” asymptotic theory develops normal approximations under the assumption that . The earliest treatment appears in White (1984). Wooldridge (2010) asserts a distribution theory under the assumption that the cluster sizes are fixed. C. Hansen (2007) provides two sets of asymptotic results, including both and convergence rates under two distinct assumptions on the rate of convergence of the estimation variance. His results are derived under the assumption that all clusters are identical in size. Carter, Schnepel and Steigerwald (2017) provided asymptotic results allowing for heterogeneous clusters, but their results are limited by atypical regularity conditions. Independently of this paper, Djogbenou, MacKinnon, and Nielsen (2018) have provided a rigorous asymptotic theory for heterogeneous clusters, with similar but stronger regularity conditions than ours. Their primary focus is theory for regression wild bootstrap, while our focus is regularity conditions for general econometric estimators.
An alternative to the “large ” asymptotic is the “fixed ” framework, which leads to a non-normal inference theory. Contributions to this literature include C. Hansen (2007), Bester, Conley and C. Hansen (2011), and Ibragimov and Müeller (2010, 2016). A related paper is Conley and Taber (2011) which provide an asymptotic theory under the assumption of a small number of groups with policy changes. Canay, Romano, and Shaikh (2017) provide approximate randomization tests.
Small sample approaches to cluster robust inference include Donald and Lang (2007), Imbens and Kolesár (2016), and Young (2016). Bootstrap approaches are provided by Cameron, Gelbach and Miller (2008), and MacKinnon and Webb (2017, 2018).
A recent contribution which develops cluster-robust inference for GMM is Hwang (2017).
The organization of the paper is as follows. After Section 2, which introduces cluster sampling, Sections 3-8 cover the core asymptotic theory, providing rigorous conditions for the WLLN (Section 3), rates of convergence (Section 4), the CLT (Section 5), cluster-robust covariance matrix estimation (Section 6), the ULLN (Section 7), and the CLT for clustered second moments (Section 8). Following this, we provide the distribution theory for the core econometric estimators, specifically linear regression and 2SLS (Section 9), Maximum Likelihood (Section 10), and GMM (Section 11). Each of these latter sections are written self-sufficiently, so they can be used directly by readers. Proofs of the core theorems are provided in the Appendix, and proofs for the applications are provided in the Supplemental Appendix.
2 Cluster Sampling
The observations are for . They are grouped into mutually independent known clusters, indexed , where the cluster has observations. The clustering can be due to the sampling scheme, or done by the researcher due to known correlation structures. The number of observations per cluster (the “cluster sizes”) may vary across clusters. The total number of observations are . It will also be convenient to double-index the observations as for and .
As is conventional in the clustering literature, the only dependence assumption we make is that the observations are independent across clusters, while the dependence within each cluster is unrestricted. Furthermore, we do not require that the observations or clusters come from identical distributions. Thus our framework includes i.n.i.d (independent, not necessarily identically distributed) as the special case .
The notation and assumptions allow for linear panel data models with cluster-specific fixed effects. In this case the observations should be viewed as clustered-demeaned observations. Another common application is linear panel data models with both cluster-specific and time-specific fixed effects. Our assumptions do not cover this case as removing the time effects will induce cross-cluster correlations. This is essentially “multiway” clustering and requires different methods. See MacKinnon, Nielsen and Webb (2017).
Our distributional framework is asymptotic as and simultaneously diverge to infinity. This is typically referred to as the “large ” framework. Our assumptions, however, will allow to diverge at a rate slower than , by allowing the cluster sizes to diverge. This is in contrast to the early asymptotic theory for clustering, which implicitly assumed that the cluster sizes were bounded.
Our theory assumes that the clusters are known, and observations are independent across clusters. This is a substantive restriction. Alternatively, it may be possible to develop a distribution theory which allows weak dependence across clusters, but we do not do so here.
A word on notation. For a vector let denote the Euclidean norm. For a positive semi-definite matrix let and denote its smallest and largest eigenvalue, respectively. For a general matrix let denote the spectral norm. For a positive semi-definite matrix let denote the symmetric square root matrix such that . We let denote a generic positive constant, that may be different in different uses.
3 Weak Law of Large Numbers
For our core theory (WLLN & CLT), we focus on the sample mean as an estimator of . It will be convenient to define the cluster sums
[TABLE]
which are mutually independent under clustered sampling. The sample mean can then be written as
[TABLE]
We use the following regularity condition.
Assumption 1**.**
As
[TABLE]
Theorem 1**.**
(WLLN for clustered means). If Assumption 1 holds and
[TABLE]
then as ,
[TABLE]
The condition (2) states that is uniformly integrable222A referee points out that the sup in (2) could be weakened to an average. However our later results will use uniform integrability conditions similar to (2) so we state all results in this format.. This condition is identical to the standard condition for the WLLN for independent heterogeneous observations, and thus Theorem 1 is a direct generalization of the WLLN for i.n.i.d. samples. (2) simplifies to when the observations have identical marginal distributions. A sufficient condition allowing for distributional heterogeneity is for some .
Assumption 1 states that each cluster size is asymptotically negligible. This implies , so we do not explicitly need to list the latter as an assumption. Assumption 1 allows for considerable heterogeneity in cluster sizes. It allows the cluster sizes to grow with sample size, so long as the growth is not proportional. For example, it allows clusters to grow at the rate for .
Assumption 1 is necessary for parameter estimation consistency while allowing arbitrary within-cluster dependence. Otherwise a single cluster could dominate the sample average. To see this, suppose that there is a cluster such that all observations within the cluster are identical, so that for some non-degenerate random variable , and that this cluster violates Assumption 1, so that . Suppose for all other clusters that and . Then and is inconsistent. Thus Assumption 1 is necessary for the WLLN (3) if we allow for unstructured cluster heterogeneity.
Assumption 1 is equivalent to the condition
[TABLE]
To see this, first observe that since , the left-hand-side of (4) is smaller than under Assumption 1. Thus Assumption 1 implies (4). Second,
[TABLE]
under (4). Thus (4) implies Assumption 1, so the two are equivalent.
4 Rate of Convergence
Under i.i.d. sampling the rate of convergence of the sample mean is . Clustering can alter the rate of convergence. In this section we explore possible rates of convergence. From the work of C. Hansen (2007) it has been understood that if the dependence within each cluster is weak then the rate of convergence would be the i.i.d. rate but if the dependence within each cluster is strong then the rate of convergence would be determined by the number of clusters: . What we now show is that the rate of convergence can be in between or even slower than these rates.
The convergence rate can be calculated as the standard deviation of the sample mean. For simplicity we focus on the scalar case . The standard deviation of is
[TABLE]
We now consider several examples. For our first four we take the case where the clusters are all the same size: for . In this case the number of clusters is .
We first consider a case where the convergence is the i.i.d. rate .
Example 1. The observations are independent within each cluster and . Then
[TABLE]
and
[TABLE]
The rate extends to any case where the within-cluster dependence is weak, including autoregressive and moving average dependence.
Our second example is a case where the convergence is determined by the number of clusters.
Example 2. The observations are identical within each cluster (e.g. perfectly correlated) and . Then
[TABLE]
and
[TABLE]
The assumption that the observations are perfectly correlated is not essential to obtain the rate. What is important is that there is a common component to the observations within a cluster.
Our third example is a case where the convergence rate is in between the above two cases. Not surprisingly, it can obtained by constructing strong but decaying within-cluster dependence.
Example 3. The observations are correlated within each cluster with and . Then
[TABLE]
and
[TABLE]
Furthermore, Thus converges at a rate in between and .
Our next two examples are somewhat surprising. They are cases where the convergence rate is slower than both and .
Example 4. The observations follow random walks within each cluster: with i.i.d. and Then
[TABLE]
and
[TABLE]
Thus converges at a rate slower than both and .
Example 5. The clusters are of two sizes, and . There are of the first type and of the second type. (So .) Within each cluster the observations are identical and have unit variances. var for the two types of clusters are and , respectively. Then
[TABLE]
Thus converges at at a rate slower than both and .
The final example illustrates the importance of considering heterogeneous cluster sizes. The reason why the convergence rate is slower than both and is because the number of clusters is determined by the large number of small clusters, but the convergence rate is determined by the (relatively) small number of large clusters.
What we have seen is that the convergence rate can equal the square root of sample size , can equal the square root of the number of groups , can be in between and , or can be slower than both and .
When is a vector, it is likely that its elements converge at different rates since they can have different within-cluster correlation structures. For example, some variables could be independent within clusters while others could be identical within clusters.
These examples show that under cluster dependence the convergence rate is context-dependent and variable-dependent, and it is therefore important to allow for general rates of convergence and to not impose arbitrary rates in asymptotic analysis.
5 Central Limit Theory
Under i.i.d. sampling the standard deviation of the sample mean is of order , so is the appropriate scaling to obtain the central limit theorem (CLT). As discussed in the previous section, clustering can alter the rate of convergence, so it is essential to standardize the sample mean by the actual variance rather than an assumed rate. The variance matrix of is
[TABLE]
We use the following regularity condition.
Assumption 2**.**
For some
[TABLE]
[TABLE]
as
Theorem 2**.**
(CLT) If for some Assumption 2 holds,
[TABLE]
and
[TABLE]
then as
[TABLE]
Theorem 2 provides a CLT for cluster samples which generalizes the classic CLT for independent heterogeneous samples. The latter holds with , and .
Assumption 2 and (7) are stronger than Assumption 1 and (2), and thus the conditions for the CLT imply those for the WLLN.
The condition (7) states that is uniformly integrable. When this is similar to the Lindeberg condition for the CLT under independent heterogeneous sampling. (7) simplifies to when the observations have identical marginal distributions. A sufficient condition allowing for distributional heterogeneity is for some .
Assumption 2 (5) is a restriction on the cluster sizes. It involves a trade-off with the number of moments . It is least restrictive for large , and more restrictive for small . As it approaches , which is implied by Assumption 2 (6).
Assumption 2 allows for growing and heterogeneous cluster sizes. For example, it allows clusters to grow uniformly at the rate for . (Note that this requires the cluster sizes to be bounded if .) It also allows for only a small number of clusters to grow. For example, suppose that (bounded) for clusters and for clusters, with fixed. Then Assumption 2 holds for any and .
Assumption 2 (5) is implied by
[TABLE]
and they are equivalent when the cluster sizes are homogeneous. In general, however, (5) is less restrictive than (10). For example, when , (10) requires the cluster sizes to be bounded, while (5) does not. (Consider the heterogeneous example given in the previous paragraph. This satisfies (5) but not (10) when .)
The condition (8) specifies that does not vanish for any conformable vector . This excludes degenerate cases and perfect negative within-cluster correlation. In general, if is non-degenerate then (8) is not restrictive as there is no reasonable setting where it will be violated. If converges at rate then but when converges at rate slower than then will actually diverge with . It should also be mentioned that condition (8) allows the components of to converge at different rates.
Our proof of Theorem 2 actually uses the conditions
[TABLE]
and
[TABLE]
instead of (5)-(8). (11)-(12) is weaker than (5)-(8) when diverges to infinity (which occurs when converges at a rate slower than ). Since the sequence is unknown in an application it is difficult to interpret the assumptions (11)-(12). Hence we prefer the assumptions (5)-(8).
The conditions (11)-(12) may be stronger than necessary when within-cluster dependence is weak, but are necessary under strong within-cluster dependence. To see this, suppose that all observations within a cluster are identical, so that and has a finite variance but no higher moments. Then the Lindeberg condition for the CLT can be simplified to
[TABLE]
for all . Each term in the sum must limit to zero, which requires (11)-(12) with .
We now compare our conditions with those of Djogbenou, MacKinnon, and Nielsen (2018). Their Assumption 3 states (in our notation) for
[TABLE]
Equation (13) implies and is stronger than (11). Calculations similar to those in our appendix show that . So (13) also implies
[TABLE]
which is (12). Thus our conditions (11)-(12) are less restrictive than their condition (13), and do not require .
6 Cluster-Robust Variance Matrix Estimation
We now discuss cluster-robust covariance matrix estimation.
We first consider the case where is mean zero (or equivalently that the mean is known). In this case the covariance matrix equals
[TABLE]
In this case a natural estimator is
[TABLE]
Theorem 3**.**
Under the assumptions of Theorem 2, if in addition then as
[TABLE]
and
[TABLE]
Theorem 3 shows that the cluster-robust covariance matrix estimator is consistent, and replacing the covariance matrix in the CLT with the estimated covariance matrix does not affect the asymptotic distribution. Implications of (15) are that cluster-robust t-ratios are asymptotically standard normal, and that cluster-robust Wald statistics are asymptotically chi-square distributed with degrees of freedom.
Construction of practical covariance matrix estimators is context-specific, depending on the mean structure. For example, suppose that does not vary across observations. In this case we can write
[TABLE]
The natural estimator for is and that for is
[TABLE]
Theorem 4**.**
Under the assumptions of Theorem 2, if in addition does not vary across observations, then as
[TABLE]
and
[TABLE]
7 Uniform Laws of Large Numbers
Now consider a uniform WLLN. Consider functions indexed on where is compact. Define the sample mean
[TABLE]
The following result is an application of Theorem 3 of Andrews (1992).
Theorem 5**.**
(ULLN for clustered means). Suppose that Assumption 1 holds and for each
[TABLE]
Suppose as well that for each
[TABLE]
where as and . Then is continuous in uniformly over and , and as
[TABLE]
We also consider a uniform law for the clustered variance. Set so that it does not vary across observations. The variance of is
[TABLE]
where are the cluster sums. An appropriate estimator for is
[TABLE]
In practice, a simpler estimator
[TABLE]
is often used if for and for some estimator .
The following result is an extension of Theorem 5 to the case of clustered variance estimators. It also relies on Theorem 3 of Andrews (1992).
Theorem 6**.**
(ULLN for clustered variance). Suppose that Assumption 2 holds with , does not vary across , for each ,
[TABLE]
and for each (19) holds with . Then as
[TABLE]
If , then as
[TABLE]
8 Central Limit Theorem for Clustered Second Moments
Although our primary focus is the sample mean, the core theory can be extended to statistics which are not sample means. In this section, we focus on the vectorized variance estimators
[TABLE]
where
[TABLE]
or
[TABLE]
The WLLN for holds by Theorem 3 (14) and Theorem 4 (16), and the ULLN for holds by Theorem 6. However, the CLT given in Theorem 2 cannot be applied to because cannot be written as the sample mean over . We provide the CLT for below. This is useful to establish asymptotic distributions of estimators in a non-standard setting. For example, the asymptotic distribution of the generalized method of moments (GMM) estimators depends on the limiting distribution of the weight matrix when the moment condition is misspecified (Hall and Inoue, 2003; Lee, 2014; Hansen and Lee, 2018).
Similar to the sample mean, the convergence rate of can vary under cluster dependence. Consider and assume for simplicity. The standard deviation of is
[TABLE]
Under i.i.d. sampling . Under the Examples 1 and 2 in Section 4, the convergence rate is .
Define the variance matrix of as
[TABLE]
We use the following regularity condition.
Assumption 3**.**
For some
[TABLE]
[TABLE]
as .
Note that Assumption 3 is a strengthening of Assumption 2.
Theorem 7**.**
(CLT for clustered variance) For some Assumption 3 holds,
[TABLE]
and
[TABLE]
then as
[TABLE]
where .
Finally we provide a CLT combining the previous results. For , , obtained by cluster sampling, let be the stacked vector
[TABLE]
or
[TABLE]
and . Let the variance matrix of be
[TABLE]
The following Corollary provides the CLT for the joint process. Since it immediately follows from Theorems 2 and 7, the proof is omitted.
Corollary 1**.**
If for some Assumption 3 holds,
[TABLE]
and
[TABLE]
then as
[TABLE]
where .
9 Linear Regression and Two-Stage Least Squares
It is useful to use cluster-level notation. Let , and denote an vector of dependent variables, matrix of regressors, and matrix of instruments for the cluster. A linear model can be written using cluster notation as
[TABLE]
where is a error vector. The case of linear regression holds as the special case where and (so that (30) becomes identity). Assume . (29) is the structural equation and (30) is the first-stage equation.
The two-stage least squares (2SLS) estimator for can be written as
[TABLE]
We first show consistency of . Define
[TABLE]
Theorem 8**.**
If Assumption 1 holds, has full rank , , and either
* have identical marginal distributions with finite second moments;*
or 2. 2.
For some , , , and
then as ,
Next we provide the asymptotic distribution. Define
[TABLE]
The residuals for the cluster are
[TABLE]
Define
[TABLE]
The variance estimator is
[TABLE]
with a possible finite-sample degree-of-freedom adjustment. For example, C. Hansen (2007) proposed for the regression case (under homogeneous cluster sizes), and Stata sets
[TABLE]
for the OLS and 2SLS estimators under cluster option.
Theorem 9**.**
Suppose that Assumption 2 holds for some , has full rank , , , , , and , and either
* have identical marginal distributions; or* 2. 2.
;
then, for any sequence of full-rank matrices , as
[TABLE]
[TABLE]
and
[TABLE]
The standard errors for can be obtained by taking the square roots of the diagonal elements of .
10 (Pseudo) Maximum Likelihood
Suppose that we observe a sequence of random vectors , with the same marginal distributions from a density where . Let be a matrix for each cluster. For the observations in the cluster , let be the joint density. Since the observations within the same cluster need not be independent, in general. This also implies that for . Given specification of , the maximum likelihood estimator (MLE) can be obtained as the maximizer of
[TABLE]
However, the joint density may be difficult to specify in practice. A simpler alternative is to use a pseudo-likelihood for the joint density , and specify the log likelihood function as
[TABLE]
Define the pseudo-MLE as
[TABLE]
This estimator is also called the partial (or pooled) MLE (Wooldridge, 2010).
This estimator is the standard implementation of MLE under clustered dependence. To our knowledge there is no existing distribution theory for this standard estimator.
We first show consistency of . The following is based on Theorem 2.1 of Newey and McFadden (1994).
Theorem 10**.**
If Assumption 1 holds,
* have identical marginal distributions with the density and , which is compact,* 2. 2.
if then , 3. 3.
, 4. 4.
for each ,
[TABLE]
where as and ,
Then as ,
Next we show the asymptotic distribution. Define
[TABLE]
Define the sample versions
[TABLE]
The variance estimator is
[TABLE]
Note that the information matrix equality does not hold because in general.
Theorem 11**.**
In addition to the assumptions of Theorem 10, Assumption 2 holds with ,
, 2. 2.
for some neighborhood of ,
- (a)
* is twice continuously differentiable and ,* 2. (b)
, 3. (c)
, 4. (d)
, 5. (e)
and for each ,
[TABLE]
where as and , 3. 3.
, 4. 4.
,
then for any sequence of full-rank matrices , as
[TABLE]
[TABLE]
and
[TABLE]
The standard errors for can be obtained by taking the square roots of the diagonal elements of .
11 Generalized Method of Moments
Suppose that we observe a sequence of random vectors , from cluster sampling. A known moment function is given by where is and is . Define the cluster sum as
[TABLE]
An unconditional moment model in cluster notation is given by
[TABLE]
We assume that is identified and so the moment model is over-identified. Write the sample mean of the moment function as
[TABLE]
Since (37) holds for all , the usual unconditional moment condition follows. The generalized method of moments (GMM) estimator is given by
[TABLE]
where is an positive definite weight matrix, which may or may not depend on an estimated parameter. Typically, the weight matrix is obtained by plugging in a preliminary consistent estimator, , so that .
We consider two forms of GMM estimator. The first one is based on a non-clustered weight matrix, which takes the form of
[TABLE]
for some vector . This includes the conventional one-step and two-step GMM estimators. For 2SLS, where is an vector of instruments. The efficient two-step GMM uses or . The conventional efficient weight matrix, however, does not provide efficiency anymore under cluster sampling because a weight matrix of the form of (39) is not consistent for the variance matrix of in general.
The second is based on the clustered efficient weight matrix, which leads to the two-step efficient GMM under cluster sampling. The weight matrix takes the form of
[TABLE]
Alternatively, the uncentered version of and can be used to obtain the efficient two-step GMM estimator but the centered version is generally recommended. For more discussion, see Hansen (2018).
Since we assume that the weight matrix depends on a consistent preliminary estimator, we exclude the continuously updating (CU) GMM estimator in our analysis. Whenever possible, we omit the dependence of the weight matrices on and write . Define .
We first show consistency of the GMM estimator. The following is based on Theorem 2.1 of Newey and McFadden (1994).
Theorem 12**.**
If Assumption 1 holds,
* is compact,* 2. 2.
* is the unique solution to ,* 3. 3.
for each , either have identical marginal distributions with , or for some , 4. 4.
for each
[TABLE]
where as and , 5. 5.
, 6. 6.
,
then as ,
Primitive conditions under which Condition 6 of Theorem 12 holds can be found given the choice of the weight matrix. For simplicity, we assume that if the conventional weight matrix is used then either or . If the clustered weight matrix is used then it takes the form of (40). The conditions of Theorem 13 are sufficient for Condition 6 of Theorem 12 to hold.
To show the asymptotic distribution of the GMM estimator, define
[TABLE]
where and . If the clustered efficient weight matrix (40) is used, then the asymptotic variance matrix simplifies to
[TABLE]
Define the sample versions as
[TABLE]
and let and . The variance estimator is
[TABLE]
if is given by (39) and
[TABLE]
if is given by (40), i.e., .
The over-identifying restrictions test (the J test, hereinafter) is a test based on the GMM criterion to test whether the moment model is correctly specified or not, i.e., . An implication of cluster sampling is that the conventional J test statistic will not have a standard chi-square asymptotic distribution because the conventional efficient weight matrix is not consistent for the inverse of the variance matrix of the moment function. The GMM criterion (38) based on the clustered efficient weight matrix (40) evaluated at the estimator is the robust J test statistic. Define
[TABLE]
Theorem 13**.**
In addition to the assumptions of Theorem 12, if Assumption 2 holds with ,
, 2. 2.
for some neighborhood of ,
- (a)
* is continuously differentiable with probability approaching one,* 2. (b)
either have identical marginal distributions with ;
or for some , 3. (c)
** 4. (d)
for each
[TABLE]
where as and , 3. 3.
, 4. 4.
, 5. 5.
* is full column rank,*
then for any sequence of full-rank matrices , as
[TABLE]
[TABLE]
[TABLE]
and
[TABLE]
The standard errors for can be obtained by taking the square roots of the diagonal elements of .
12 Appendix
We start with a useful technical result which states that if random variables are uniformly integrable then so are their cluster averages, regardless of their joint dependence.
Lemma 1**.**
For random vectors set . For , if
[TABLE]
then
[TABLE]
Proof of Lemma 1: The proof is based on the proof of Theorem 1 of Etemadi (2006). Equation (45) implies that for some . By the inequality
[TABLE]
and hence
[TABLE]
Fix . Find sufficiently large such that
[TABLE]
which is feasible under (45). Using (47),
[TABLE]
by (49), Markov’s inequality, (48), and . Since is arbitrary this implies (46).
The next Lemma is useful for establishing the WLLN and CLT for the vectorized clustered second moments.
Lemma 2**.**
For random vectors set and or where . For , if (45) holds then
[TABLE]
Proof of Lemma 2: The proof proceeds similar to that of Lemma 1. First consider . By the triangle inequality, the inequality, the fact that , and (48),
[TABLE]
Fix . Find sufficiently large such that
[TABLE]
which is feasible under (45). Using (51) and (47),
[TABLE]
by (52), Markov’s inequality, (48), and using the discriminant. Since is arbitrary this implies (50).
Now consider . By Minkowski’s inequality, the inequality, (47), and (48),
[TABLE]
and
[TABLE]
Given , find sufficiently large such that
[TABLE]
and proceed as above to show (50). This completes the proof.
Proof of Theorem 1: Without loss of generality assume . Fix . Pick sufficiently large so that
[TABLE]
which is feasible by Lemma 1 with under (2). Using the triangle inequality, Jensen’s inequality and (53),
[TABLE]
The equality uses the assumption that the clusters are independent and thus uncorrelated and the fact . The third inequality uses the bound
[TABLE]
The fourth inequality is (4). Since is arbitrary, . By Markov’s inequality, (3) follows.
Proof of Theorem 2: Without loss of generality we assume Note that
[TABLE]
We apply the multivariate Lindeberg-Feller central limit theorem (e.g. Hansen (2018) Theorem 6.15) since are independent but not identically distributed. A sufficient condition for the CLT (9) is that for all
[TABLE]
as .
Fix and . Pick sufficiently large so that
[TABLE]
which is feasible by Lemma 1 under (7). Pick large enough so that
[TABLE]
which is feasible by (12). Thus
[TABLE]
The second inequality is (56), the third is (55), and the final is (11). Since and are arbitrary we have established (54) and hence (9).
Proof of Theorem 3: Fix . Set . Define and . Then
[TABLE]
By the triangle inequality,
[TABLE]
An argument similar to (57) shows that for sufficiently large (59) is bounded by . We now consider (58).
Using Jensen’s inequality, the assumption that the clusters are independent and thus uncorrelated, and the triangle inequality, (58) is bounded by
[TABLE]
Using the bounds and, we deduce . Thus (60) is bounded by
[TABLE]
The first equality holds because are independent and mean zero, and the second and third use the definition of . The final equality is .
Together, we have shown that for sufficiently large,
[TABLE]
and hence (14) by Markov’s Inequality.
By the continuous mapping theorem
[TABLE]
and
[TABLE]
Combined with Theorem 2 we find
[TABLE]
This is (15).
Proof of Theorem 4: Since the estimator is invariant to , without loss of generality we assume . In this case
[TABLE]
Then by the triangle inequality, Theorem 3, Theorem 2, and (6),
[TABLE]
This is (16). Equation (17) follows as in the proof of (15).
Proof of Theorem 5: Define the cluster sums so that where are mutually independent.
Andrews (1992, Theorem 3) shows that (20) holds if is totally bounded,
[TABLE]
and for all ,
[TABLE]
where as and . The total boundedness condition holds by assumption and the WLLN holds by Theorem 1 under Assumption 1 and (18), so it only remains to establish the Lipschitz condition (61). Indeed, using the triangle inequality and (19)
[TABLE]
where . Notice that
[TABLE]
since . This verifies (61) and hence (20) holds.
Proof of Theorem 6: Without loss of generality, assume .
We first examine the case with no estimated mean (23). Andrews (1992, Theorem 3) shows that (23) holds if for all
[TABLE]
and for all , ,
[TABLE]
with as and . We now establish (62) and (63).
Take (62). Fix . For brevity, suppress the dependence of on . Fix . Set . Define . Then
[TABLE]
By the triangle inequality
[TABLE]
Take (64). Assumption (21) and the inequality allow us to deduce that
[TABLE]
for some . Using Jensen’s inequality, the assumption the clusters are independent and thus uncorrelated, the bounds and , (66), (5) with and the definition of , we obtain that (64) is bounded by
[TABLE]
Take (65). Lemma 1 implies that is uniformly integrable given Assumption (21). This means we can pick sufficiently large so that
[TABLE]
Pick large enough so that
[TABLE]
which is feasible by (6). Then (65) is bounded by
[TABLE]
using (67) and (5) with . We have shown that . Since is arbitrary, by Markov’s inequality, (62) is shown.
Take (63). Fix any . Set . Using the triangle inequality and Assumption (19)
[TABLE]
Then
[TABLE]
Hence (63) holds with .
It remains to show that . Assumption (21) and the inequality allows us to deduce that . Applying Holder’s inequality
[TABLE]
Hence
[TABLE]
by Assumption (5) with . This establishes (63).
By showing (62) and (63) we have established (23).
The case with estimated mean (22) immediately follows from (23) and Theorem 5.
Proof of Theorem 7: Define
[TABLE]
Then
[TABLE]
where .
Since are independent but not identically distributed, we apply the multivariate Lindeberg-Feller central limit theorem (e.g. Hansen (2018) Theorem 6.15). Since a sufficient condition for the CLT (28) is that for all
[TABLE]
as .
Fix and . Pick sufficiently large so that
[TABLE]
which is feasible by Lemma 2 under (26). Pick large enough so that
[TABLE]
which is feasible by (25). Thus
[TABLE]
The second inequality is (70), the third is (69), and the final is (24). Since and are arbitrary we have established (68) and hence (28).
The proofs of Theorems 8-13 are presented in the Supplemental Appendix.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Andrews, Donald W.K. (1992). Generic uniform convergence. Econometric Theory , 8 (2), 241-257.
- 2[2] Angrist, Joshua D. and J. S. Pischke (2009). Mostly Harmless Econometrics: An Empiricist’s Companion . Princeton: Princeton University Press.
- 3[3] Arellano, Manuel (1987). Computing robust standard errors for within-groups estimators. Oxford Bulletin of Economics and Statistics , 49, 431-434.
- 4[4] Bertrand, Marianne, Esther Duflo, and Sendhil Mullainathan (2004). How much should we trust differences-in-differences estimates?. The Quarterly Journal of Economics , 119(1), 249-275.
- 5[5] Bester, C. Alan, Timothy G. Conley, and Christian B. Hansen (2011). Inference with dependent data using cluster covariance estimators. Journal of Econometrics , 165(2), 137-151.
- 6[6] Cameron, A. Colin, and Douglas L. Miller (2011). Robust inference with clustered data. Handbook of Empirical Economics and Finance , ed. A. Ullah and D.E. Giles, New York: CRC Press, 1-28.
- 7[7] Cameron, A. Colin, and Douglas L. Miller (2015). A practitioner’s guide to cluster robust inference. Journal of Human Resources , 50, 317-372.
- 8[8] Cameron, A. Colin, Jonah B. Gelbach, and Douglas L. Miller (2008). Bootstrap-based improvements for inference with clustered errors. Review of Economics and Statistics , 90, 414-427.
