Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Combining estimation results and estpost results in esttab
From
Stephi Springham <[email protected]>
To
[email protected]
Subject
st: Combining estimation results and estpost results in esttab
Date
Sat, 3 Aug 2013 04:52:48 +0100
I need to display in the same table, ratios by subpopulation (from the
ratio command) in one column, and in the next column some results from
estpost.
The nearest I can get is using the following, but it doesn't look great!
ratio (_:a/b), over(urban)
estimates store est1
ratio (_:a/b)
estimates store est2
estpost tabstat var, stats(sum) by(urban)
estimates store est3
esttab est1 est2 est3 using "$output/table.csv", ///
replace cells("b sum") plain noobs
est1 est2 est3
b sum b sum b sum
Urban 78.4 30784
Rural 100.3 89540
Total 94.4 120324
What I would love to achieve, is to lose the 'sum' columns for est1
and est2, and lose the 'b' column for est3... is this possible?
And what would be even more magical, move the 'total' ratio from est2
over to the est1 'b' column.
Can anyone please help me? I am very new to these commands....
Many thanks!
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/