Hello,
I need to run many regressions and store estimates to be plotted in graphs - specifically 3 x 12 x 14 regressions, which is more than what eststo can handle. For this reason, I stored my results using postfile.
Some sample code for that is below (I omit some intermediate parts)
However, I also need regression tables for some of these models. Specifically, I need tables for all models with j = 2007 and j = 2010.
Is there a way for me to use eststo and esttab for only this subset of models in this loop?
For now I was just estimating those again separately, but storing with eststo and then using esttab. Is there some more elegant way of doing so?
Thanks
I need to run many regressions and store estimates to be plotted in graphs - specifically 3 x 12 x 14 regressions, which is more than what eststo can handle. For this reason, I stored my results using postfile.
Some sample code for that is below (I omit some intermediate parts)
Code:
clear forvalues spec = 1/3 { clear postutil clear use "data", replace postfile results /// CODE HERE forvalues j = 1999/2010{ forvalues i = 1/14 { local a : word `i' of $variables reghdfe dlog_`a'_`j' var1 var2 if ${spec`spec'}, vce(robust) local coefficient_exp = _b[var1] local coefficient_imp = _b[var2] local std_error_exp = _se[var1] local std_error_imp = _se[var2] post results CODE HERE } } postclose results }
Is there a way for me to use eststo and esttab for only this subset of models in this loop?
For now I was just estimating those again separately, but storing with eststo and then using esttab. Is there some more elegant way of doing so?
Thanks
Comment