Hi,
Is there a way to make a command work for the whole Do-file?
For example,
I want to run these four (even more) regressions and use outreg2 to report tables with numbers of only 3 digits.
It is very tedious to set
for each regression.
Thus how can I type
only once in a Do-file?
Thanks very much for any advice!
Is there a way to make a command work for the whole Do-file?
For example,
I want to run these four (even more) regressions and use outreg2 to report tables with numbers of only 3 digits.
Code:
///////////////// Main ///////////////// //OLS reg rnd L1.rnd gap_e gap_r L1.growth crisis_08 crisis_09 outreg2 using rndreg.xls, replace ctitle(OLS 1) /// bdec(3) sdec(3) tdec(3) pdec(3) cdec(3) rdec(3) reg rnd L1.rnd gap_e gap_r crisis_08 crisis_09 outreg2 using rndreg.xls, append ctitle(OLS 2) /// bdec(3) sdec(3) tdec(3) pdec(3) cdec(3) rdec(3) //FE xtreg rnd L1.rnd gap_e gap_r L1.growth crisis_08 crisis_09,fe outreg2 using rndreg.xls, append ctitle(FE 1) /// bdec(3) sdec(3) tdec(3) pdec(3) cdec(3) rdec(3) xtreg rnd L1.rnd gap_e gap_r crisis_08 crisis_09,fe outreg2 using rndreg.xls, append ctitle(FE 2) /// bdec(3) sdec(3) tdec(3) pdec(3) cdec(3) rdec(3)
Code:
bdec(3) sdec(3) tdec(3) pdec(3) cdec(3) rdec(3)
Thus how can I type
Code:
bdec(3) sdec(3) tdec(3) pdec(3) cdec(3) rdec(3)
Thanks very much for any advice!
Comment