Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: adding results to esstab (by subgroups)

From   "Marco Francesco" <>
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 

-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:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index