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: adding results to esstab (by subgroups)
From
"Marco Francesco" <[email protected]>
To
[email protected]
Subject
st: adding results to esstab (by subgroups)
Date
Mon, 04 Feb 2013 10:43:52 +0100
Dear all (my previous post was incomplete)
I would like to know how can I add the number of distinct observations of a variable X (or any other computation) to a table exported (in Latex) with esttab.
In particular I am interested in summary table separated by groups :
-estpost tabstat var1 var2 var3, by(id_group) statistics(mean sd) column(statistics)
and thus I export the table in latex using (as suggested in
http://repec.org/bocode/e/estout/estpost.html#estpost104)
-esttab, using mytable.tex main(mean) aux(sd) nostar unstack noobs nonote nomtitle nonumber
I can obtain the distinct values of X for each group using the function -distinct.
The question is : how can I integrate these results to the previous table ? That is below all the statistics organized by groups, I would also like to have the corresponding number of distinct values of X...
Many thanks for your help!
*
* 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/