Hi Statalist,
I am running an IV regression that interacts the endogenous variable with year and industry fixed effects with about 3 million observations and it takes about 5, 6 hours or even longer. I would like to know how to speed this up because I need to bootstrap the regression to generate a standard error.
The regression in Stata command is as follow: ivregress 2sls y i.year i.industry some_controls (x c.x#i.industry#i.year = z c.z#i.industry#i.year)
There are about 300 industries and 15 years. So maybe because there are so many parameters to estimate, the model takes a long time to run. I tried to run this in Stata-MP but for some reason, there is not much speed gain. I am not sure what else I can do.
Thank you,
Jeff
Related Posts with Speed up ivregress
Missing data in panel data. Should it be deleted? Codes Inflation GDP M&A volume (domestic) M&A number (domestic) M&A volume (cross-bor…
Predicted probabilities with -melogit-Dear all, I am running a multilevel model (random slopes) with 2 levels (individuals nested in coun…
Updated markstat for Stata 17Thanks to Kit Baum an update to -markstat- is now available at SSC. To update type Code: ssc insta…
Mathematics in stata /stock return / change in log stock pricesHello everyone, I have 400 firms and I have closing prices for 5 months ( Nov 2018 ,Dec 2018, and Ja…
Difference-in-difference and CEM with panel data Dear everybody I am investigating how employees are affected when they are outsourced from public …
Subscribe to:
Post Comments (Atom)
0 Response to Speed up ivregress
Post a Comment