Does anyone know if there is a package that would run Fama-MacBeth regressions in R and calculate the standard errors? I am aware of the sandwich package and its ability to estimate Newey-West standard errors, as well as providing functions for clustering. However, I have not seen anything with respect to Fama-MacBeth.
Does anyone know if there is a package that would run Fama-MacBeth regressions in
Share
The
plmpackage can estimate Fama-MacBeth regressions and SEs.However note that this method works only if your data can be coerced to a
pdata.frame. (It will fail if you have"duplicate couples (time-id)".)For further details see: