Stata Command: xtregtwo.ado
The output displayed below shows fixed effect estimates of the standard Fama-French three-factor regression with novel standard errors that are robust against clustering by firms, clustering by months, and serial correlation in unobserved macroeconomic effects. It is implemented by the Stata command xtregtwo, which executes estimation of linear panel regression models with standard errors robust to two-way clustering and untruncated serial correlation in common time effects.
Installation:
. ssc install xtregtwo
Usage:
. use "fama_french.dta"
. xtset i t
. xtregtwo return mkt smb hml, fe
Help:
. help xtregtwo
Reference: Chiang, H.D., B.E. Hansen, and Y. Sasaki (2024: forthcoming) Standard Errors for Two-Way Clustering with Serially Correlated Time Effects. Review of Economics and Statistics. Paper.