Simple Formulas for Standard Errors that Cluster by Both Firm and Time
25 Pages Posted: 13 Jul 2006 Last revised: 18 May 2009
Date Written: May 12, 2009
When estimating finance panel regressions, it is common practice to adjust standard errors for correlation either across firms or across time. These procedures are valid only if the residuals are correlated either across time or across firms, but not across both. This note shows that it is very easy to calculate standard errors that are robust to simultaneous correlation across both firms and time. The covariance estimator is equal to the estimator that clusters by firm, plus the the estimator that clusters by time, minus the usual heteroskedasticity-robust OLS covariance matrix. Any statistical package with a clustering command can be used to easily calculate these standard errors.
Keywords: cluster standard errors, panel data, finance panel data
JEL Classification: C23, G30, G12
Suggested Citation: Suggested Citation