Hi everyone!

I'm working on same descriptive statistics and ttest tables on Stata and I want to export them on latex.

In particular I want a table with different panels.
For example:

Panel A contains tabstat and ttest of variables x y z
Panel B contains tabstat and ttest of variables a b c

my commands are the following:

tabstat x y z, s(count mean median min max sd) c(statistics)
ttest x==0
ttest y==0
ttest z==0

tabstat a b c, s(count mean median min max sd) c(statistics)
ttest a==0
ttest b==0
ttest c==0

And then I report manually on latex.

Do you have any idea on how to do it automatically, keeping also the division of panel A and panel B on latex?

Thanks for you help


​​​​​​​Andrea