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
Maximum value for each quarterDear all, I'm stuck with something that I think you may help me : ) I have a data set on a monthly b…
Issues with unbalanced Panel DataHello everyone: I have a few questions concerning the choices I have to make with respect to unbala…
Lead and Lag Variables in RegressionsHi All I have an example of a regression model with leads and lags, and I was wondering if I am cor…
Logit estimation - Margins - not estimableDear forum members, I face the following issue. I am running a logit regression on survey data (ind…
Annual and Monthly Stock PricesDear All Hope you are well. I am working on some share prices and I would really appreciate some h…
Subscribe to:
Post Comments (Atom)
0 Response to Speed up ivregress
Post a Comment