Why are ordinary standard errors too small here? (cluster-robust standard errors)
In brief
The ordinary standard error of a regression assumes that every row brings new, independent information. If the same firm was measured for 20 years, the 20 rows bring less new information than 20 different firms: one year resembles the next. The standard error is then too small, p values too small, intervals too narrow. A cluster-robust standard error treats each unit as one block ("cluster") and allows the rows within a block to be related in any way. Between the blocks independence remains the assumption.
An example with real data
Grunfeld data, ten firms times 20 years. In the pooled model (all rows in one pot) the classical standard error of market value is 0.0058, the cluster-robust one 0.0159, that is 2.7 times as large. With the classical value market value would look almost three times as precisely estimated as it is. With fixed effects (within) the values are 0.0119 and 0.0152: here the difference is small because the model has already removed the differences between the firms.
When do I use it?
Whenever the same units (firms, people, countries, schools) appear several times in the data and the question is meant to apply beyond the unit. The rule of thumb: cluster where the rows belong together, and not finer.
Requirements
- Enough clusters: the theory holds for many units. Below about 30 the cluster-robust standard errors are themselves too small; Statable then warns. With very few units bootstrap methods or other calculations help, which Statable does not offer.
- No dependence between the units (for example common economic shocks): this calculation does not help against that.
How it works in Statable
- Open Examples > "Investment of ten firms (Grunfeld)" (economics) and run the regression "investment from market value and capital stock".
- Under the result, at "Calculate differently", open the block "The same units over time? (panel data, fixed and random effects)" (Ctrl+K: "panel data"); group identifier "firma", target "investition", features "marktwert" and "kapitalstock"; "Calculate panel".
The table shows both standard errors side by side. Statable follows the formula of Stata and the R package sandwich (CR1); the package plm differs somewhat for fixed effects (smaller errors) because it uses a different correction factor.
Reading and reporting the result
Standard errors are clustered at the firm level (G = 10). For market value the fixed-effects model gave b = 0.110, cluster-robust SE = 0.015.
Limits
- With only ten units even the cluster-robust standard error is too optimistic; the block says so.
- It changes only the standard errors, not the estimates. If the model is biased it stays biased.
What is often misunderstood
Sources
Cameron, A. C. & Miller, D. L. (2015). A Practitioner's Guide to Cluster-Robust Inference. Journal of Human Resources, 50(2), 317-372. Croissant, Y. & Millo, G. (2008). Panel Data Econometrics in R: the plm Package. Journal of Statistical Software, 27(2) (open access). Cunningham, S. Causal Inference: The Mixtape (mixtape.scunning.com, open access). Data: Grunfeld, Y. (1958), prepared in the R packages plm and AER (GPL).
Take away
- Measurements of the same unit are not independent; ordinary standard errors are then too small.
- Cluster-robust: each unit as one block, anything may be related within the block.
- Below about 30 units these standard errors are too small as well.
- It changes only the standard errors, not the estimates.