Hello to all,

I'm creating this topic because I haven't found my answer on it.

I am currently stuck, I have just spent several days on my problem without success.

I would like to export my results in an excel or csv file linked to several regression.

I have a large dataset and I have to do several regressions. (120 regressions per order). I use the following command:

by CountryofHeadquarters, sort: regress TAA1 A1 REVRECA1 PPEA1

CountryofHeadquarters allows me to do my regressions by country
TAA1 : dependent variable
A1, REVRECA1 and PPEA1 are my independent variables.

With this, I have about 120 regressions. I can't type all the results by hand. So I would like to export all these results to an excel or csv table. But I can't do it, I tried with esttab; outreg2 and putexcel but nothing works.

I also want to include in each regression result the residuals and the p-values.

Can you please help me?

Thanks a lot,

Loïc DUBOIS