I am producing tables of summary statistics with -esttab-, from -ssc-, in Stata 14. Each statistic is in its own row, like in the following:
The output table looks like this:
Question 1: How do I swap the variable name, mpg, and the names of the statistics, so that furthermore each statistic name is in its own row?
Question 2: How do I make the column number appear below all other model or group titles or column labels? I found this analogous question on statalist, but seemingly no answer.
My ideal table would look something like this:
Thanks for all your help.
Code:
sysuse auto, clear estimates clear eststo: estpost su mpg esttab, cells(mean(fmt(2)) sd(fmt(2)) count(label(N) fmt(0)))
Code:
-------------------------
(1)
mean/sd/N
-------------------------
mpg 21.30
5.79
74
-------------------------
N 74
-------------------------
Question 2: How do I make the column number appear below all other model or group titles or column labels? I found this analogous question on statalist, but seemingly no answer.
My ideal table would look something like this:
Code:
-------------------------
mpg
(1)
-------------------------
mean 21.30
SD 5.79
N 74
-------------------------
N 74
-------------------------
Thanks for all your help.

Comment