I have a dataset with 4 million observations on 2 million students in two points in time (grade 5 and grade 8) from 5 different cohorts (observed between 2012 and 2019) from 15,000 schools. I am running the following panel regression with fixed effects:
Code:
qui reghdfe test_score proportion_females, absorb(school year student grade i.school#c.year) vce(cluster i.school)
Is there a way of running the regression faster? I need to run 20+ of those regressions because of different model specifications. Are there tricks to implement that reduce the computation time (e.g. reducing the number of decimals of the dependent and the independent variables...)?
I am using Stata/SE 15.1 for Mac (64-bit Intel) on a 2014 Macbook Pro (2.4 GHz Quad-Core Intel Core i7) with macOS Catalina 10.15.2.
Thank you in advance for your help and tips.
0 Response to reghdfe takes hours - how to run panel regressions with FE faster?
Post a Comment