Hostname: page-component-74656f9884-rdgjk Total loading time: 0 Render date: 2026-11-08T05:02:08.742Z Has data issue: false hasContentIssue false

Practical and Effective Approaches to Dealing With Clustered Data

Published online by Cambridge University Press:  19 January 2018

Rights & Permissions [Opens in a new window]

Abstract

Cluster-robust standard errors (as implemented by the eponymous cluster option in Stata) can produce misleading inferences when the number of clusters G is small, even if the model is consistent and there are many observations in each cluster. Nevertheless, political scientists commonly employ this method in data sets with few clusters. The contributions of this paper are: (a) developing new and easy-to-use Stata and R packages that implement alternative uncertainty measures robust to small G, and (b) explaining and providing evidence for the advantages of these alternatives, especially cluster-adjusted t-statistics based on Ibragimov and Müller. To illustrate these advantages, we reanalyze recent work where results are based on cluster-robust standard errors.

Information

Type
Original Articles
Copyright
© The European Political Science Association 2018 
Figure 0

Table 1 Use of Cluster-Robust Standard Errors (CRSE) in General Interest Journals in Political Science (2010–2014)

Figure 1

Fig. 1 Size and power assessment for linear dependent variables Note: The graphs on the left show the proportion of rejected null hypotheses (β=0) out of 1000 simulations for parameters whose true values are βx=βz=0 in the linear model yi=βxxi+βzzi+βwwi+γg+εi with cluster dependency; this is a measure of the false positive rate. Each model (except random effects) is a correctly specified linear link generalized linear model (estimated using glm) with a different method of calculating statistical significance, as indicated in the legend; random effects models are correctly specified linear random effects models estimated using lme4. The hypothesis tests are conducted at α=0.05, so the false positive rate should ideally equal 0.05. The top graph shows the false positive rate for a variable (x) that is correlated with the cluster structure, while the bottom graph shows the false positive rate for a variable (z) that is uncorrelated with the cluster structure by design. The graphs on the right show the proportion of rejected null hypotheses out of 1000 simulations for parameters whose true values are βx=βz=0.25 in the same linear model; this is a measure of the true positive rate. One simulation is dropped for random effects models with 60 clusters due to estimation failure and the rejection rate is calculated out of 999 simulations for that case. For a method to have adequate power to conduct significance tests, the true positive rate should ideally equal 1. The top graph shows the true positive rate for a variable (x) that is correlated with the cluster structure, while the bottom graph shows the true positive rate for a variable (z) that is uncorrelated with the cluster structure by design. SEs=standard error; CRSE=cluster-robust standard error; CATs=cluster-adjusted t-statistics; WCBSTs=wild cluster bootstrapped t-statistics; PCBSTs=pairs cluster bootstrapped t-statistics.

Figure 2

Fig. 2 Size and power assessment for linear dependent variables with fixed effects and serial dependence Note: The graph on the left shows the proportion of rejected null hypotheses (β=0) out of 1000 simulations for parameters whose true values is βx=0 in the linear model yi=βxxi+βzzi+βwwi+γg+εi with (a) correlation between the group-specific mean of x (=μg) and the group-level effect γg and (b) within-group serial dependence in ε and x; this is a measure of the false positive rate. Each model (except random effects) is a correctly specified linear fixed effects model estimated using plm with a different method of calculating statistical significance, as indicated in the legend; random effects models are linear random effects models with correct variable specification (but no fixed effects) estimated using lme4. The hypothesis tests are conducted at α=0.05, so the false positive rate should ideally equal 0.05. The graph on the right shows the proportion of rejected null hypotheses out of 1000 simulations for parameters whose true values are βx=0.25 in the same linear model; this is a measure of the true positive rate. For a method to have adequate power to conduct significance tests, the true positive rate should ideally equal 1. See the Online Appendix for results for the cluster-uncorrelated independent variable (z). SEs=standard error; CRSE=cluster-robust standard error; CATs=cluster-adjusted t-statistics; WCBSTs=wild cluster bootstrapped t-statistics; PCBSTs=pairs cluster bootstrapped t-statistics.

Figure 3

Fig. 3 Marginal effects (ME) plot, effect of changed in received transfer (Δitm) on changes in proposed tax rate (Δitτ) by period Note: Dependent variable: change in candidate’s proposed tax rate (Δitτ). ME are calculated using the results in Online Appendix Table 2. CI=confidence interval; CRSE=cluster-robust standard error; CATs=cluster-adjusted t-statistics.

Figure 4

Fig. 4 Marginal effects (ME) plot, effect of changed in received transfer (Δitm) on changes in proposed tax rate (Δitτ) by period in high (a) and low tax groups (b) Note: Dependent variable: change in candidate’s proposed tax rate (Δitτ). ME are calculated using the results in Online Appendix Table 3 for panel 4 and Online Appendix Table 4 for panel 4. CI=confidence interval; CRSE=cluster-robust standard error; CATs=cluster-adjusted t-statistics.

Supplementary material: Link

Esarey and Menger Dataset

Link
Supplementary material: PDF

Esarey and Menger supplementary material

Esarey and Menger supplementary material 1

Download Esarey and Menger supplementary material(PDF)
PDF 594.5 KB