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, statalist.org is already up and running.


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

Re: st: RE: esttab question


From   Jörg Eulenberger <j.eulenberger@web.de>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: esttab question
Date   Thu, 01 Sep 2011 14:31:57 +0200

Dear Jesper,
it is exactly what i mean.
Thanks a lot,
Jörg




Am 01.09.2011 08:59, schrieb Jesper Lindhardsen:
> Hi Jorg
>
> If I understand correctly, you mean like this :
>
>
> sysuse auto
> est clear
> eststo: estpost corr  foreign headroom trunk weight if  rep78==3 
> eststo: estpost corr  foreign headroom trunk weight if  rep78==4 
> eststo: estpost corr  foreign headroom trunk weight if  rep78==5 
> esttab *, b(2) not unstack compress nonumber nomtitle  noobs varw(30) label
>
> HTH Jesper
>
> Jesper Lindhardsen
> MD, PhD candidate
> Department of Cardiovascular Research
> Copenhagen University Hospital, Gentofte
> Denmark
>
>
>
>
>
>
> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Jörg Eulenberger
> Sent: 01 September 2011 07:55
> To: 'statalist@hsphsun2.harvard.edu'
> Subject: st: esttab question
>
>
> Dear Statalisters,
> i want to create a table like:
>
> sysuse auto
> estpost corr  foreign headroom trunk weight
> esttab , b(2) not unstack compress nonumber nomtitle  noobs varw(30) label
>
> But now i want a table with different subgroups
>
> sysuse auto
> estpost corr  foreign headroom trunk weight if  rep78==3
> estpost corr  foreign headroom trunk weight if  rep78==4
> estpost corr  foreign headroom trunk weight if  rep78==5
> esttab , b(2) not unstack compress nonumber nomtitle  noobs varw(30) label
>
> for each subgroup a separate column in one table.
>
> Thanks for help,
> Jörg
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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