Hello!
I'm running several panel data regressions with millions of observations that take many hours. I´m unsure of which coefficients I´ll want to report and thus would like the option to store the estimates on disk to export later.
An example of code would be:
I found this loop in statlist that allows to save multiple results in a single file.
But if I clear the memory, as I do to run the following set of regressions, and later load the stored estimates, esttab only gives one set of results, although I can choose each one.
Thus, my goal is to be able to clear the memory and still get the same table produced from the first esttab.
Thank you for your time!
Best,
Hélder
I'm running several panel data regressions with millions of observations that take many hours. I´m unsure of which coefficients I´ll want to report and thus would like the option to store the estimates on disk to export later.
An example of code would be:
Code:
clear cd "C:\Users\helder.ascosta\Desktop\tests" eststo clear sysuse auto eststo: reg price weight mpg eststo: reg price weight mpg foreign eststo: reg gear_ratio esttab
Code:
estimates dir global estlist `r(names)' local j = 0 foreach est of global estlist{ est rest `est' if `j' > 0 estimates save results, append if `j' == 0 estimates save results, replace local j = 1 }
Code:
est clear est use results esttab est use results, number(2) esttab
Thank you for your time!
Best,
Hélder
Comment