Dear Stata Users
I am running multiple time-series regressions and need to output them into the Excel file.
I am running the following code:
Unfortunately, Stata records only the last regression output and misses the other 20 outputs. Do you have any idea how to alter this code to correct the error?
Thanks.
I am running multiple time-series regressions and need to output them into the Excel file.
I am running the following code:
Code:
foreach x of varlist RET* HmL* { newey `x' mktrf smb hml umd, lag(1) force esttab using "T1.csv", replace cells(b(nostar fmt(2)) t(par([ ])fmt(2))) } cap erase "T1.txt"
Thanks.
Comment