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
metan Hazard Ratio log scaleHello, I am running cox regression and I want to make forest plot of my hazard ratios using metan. I…
Creating new variables based on information from three other variablesI’m having some difficulty creating a new variable from three others. All variables are of binary ty…
Generating new variables based on information in other observations in datasetI'm working with some NCAA football player data. I've reached a bit of a difficult (for me) data cle…
Residual Variance Estimators: Calculating HC0 & HC1Hi everyone, This may seem like a very simple question but could someone please share the command f…
Within estimator singleton Code: sysuse auto split make encode make1, g(id) xtset id xtreg price displacement, fe Assume that …
Subscribe to:
Post Comments (Atom)
0 Response to Speed up ivregress
Post a Comment