I have multiple sets of regressions that need to be presented in different tables. I wonder if there is a way to export multiple set of regressions into one Excel workbook using either outreg2
or esttab
or some other package?
For example, I run 100 regressions using esttab
; then I want to present them in 25 different tables with four regressions in each table. The following format of code allows me to export to 25 different csv files:
esttab using "$output\output1.csv", se stats(N ymean r2_a) replace
However, I want to have all the 25 tables in one workbook with 25 tabs. It is possible to copy-paste the tables if the number of output files is not big, but that's not the case for me.
ctitle()
option ofoutreg2
to differentiate your models programmatically? Putting this aside, so far as I know,outreg2
does not allow one to specify the sheet name(s) in the Excel output file directly (asoutreg2
seems to be based onoutsheet
). However, it is likely possible with thedta
option and Stata's newerexport excel
command. – Sonjaoutreg2
. (I haven't usedesttab
.) – Sonja