Regression modelStatisticsModel

Cluster-Robust Standard Errors

Also known as: clustered standard errors, cluster-robust inference, clustered variance estimator, Küme Robust Standart Hatalar

OriginatorLiang & Zeger (GEE sandwich); Cameron & Miller (practitioner synthesis)Year1986Sources2Related methods6

Cluster-robust standard errors correct the variance of regression coefficients when observations are correlated within clusters such as schools, hospitals, or regions. The clustered sandwich estimator grew out of Liang & Zeger's (1986) generalized estimating equations and was synthesized for applied work by Cameron & Miller (2015), delivering valid inference when ordinary standard errors would be too small.

Key highlights

  • Produces valid inference under arbitrary correlation within clusters, without modelling that correlation explicitly.
  • Leaves the coefficient estimates untouched — only the standard errors, t-tests, and confidence intervals are corrected.
  • Applies broadly across panel, longitudinal, and cross-sectional data with a defined grouping.

Intuition

This section is available to Pro members. Upgrade to Pro

How it works

This section is available to Pro members. Upgrade to Pro

When to use it

Use cluster-robust standard errors whenever observations are naturally grouped and may be correlated inside those groups — panel, longitudinal, or cross-sectional designs with a defined cluster structure — and the outcome is continuous or binary. The approach assumes the cluster structure is correctly specified, clusters are mutually independent, and there are enough of them (at least about 20, with a minimum sample of roughly 50). It is not appropriate with very few clusters, where the asymptotic correction breaks down.

Strengths & limitations

Strengths
  • Produces valid inference under arbitrary correlation within clusters, without modelling that correlation explicitly.
  • Leaves the coefficient estimates untouched — only the standard errors, t-tests, and confidence intervals are corrected.
  • Applies broadly across panel, longitudinal, and cross-sectional data with a defined grouping.
Limitations
  • Relies on asymptotics in the number of clusters; with fewer than about 20 clusters the standard errors become unreliable.
  • Requires a correctly specified cluster structure and independence between clusters.
  • With very few clusters (below about 10) the cluster correction is essentially meaningless.

Common pitfalls

This section is available to Pro members. Upgrade to Pro

Applications

This section is available to Pro members. Upgrade to Pro

Frequently asked

Do cluster-robust standard errors change my coefficients?

No. The point estimates from the underlying regression stay exactly the same. Only the variance — and therefore the standard errors, t-statistics, and confidence intervals — is corrected for within-cluster correlation.

How many clusters do I need?

At least about 20 clusters are recommended for the asymptotic correction to be trustworthy. With fewer than 20 the standard errors become unreliable and a wild cluster bootstrap is preferable; with fewer than about 10 the correction is essentially meaningless and a permutation test is the better choice.

At what level should I cluster?

Cluster at the level where correlation is plausibly induced — typically the sampling or treatment-assignment unit, such as the school, hospital, or region. The cluster structure must be correctly specified and clusters should be independent of one another.

How is this different from heteroscedasticity-robust standard errors?

Heteroscedasticity-robust (Huber-White) standard errors allow each observation its own error variance but still treat observations as independent. Cluster-robust standard errors go further, permitting arbitrary correlation among all observations within the same cluster.

Sources

  1. 1.
    Liang, K. Y. & Zeger, S. L. (1986). Longitudinal Data Analysis Using Generalized Linear Models. Biometrika, 73(1), 13-22.
  2. 2.
    Cameron, A. C. & Miller, D. L. (2015). A Practitioner's Guide to Cluster-Robust Inference. Journal of Human Resources, 50(2), 317-372.

You have read it. What now?

Cite this page

ScholarGate. (2026, June 1). Cluster-Robust Standard Errors. ScholarGate. https://scholargate.app/statistics/cluster-robust-se

Cluster-Robust Standard Errors | ScholarGate