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: Super-Columns with Esttab


From   "Rita Frühwald" <metoka2@gmx.de>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Super-Columns with Esttab
Date   Mon, 19 Nov 2012 15:05:46 +0100

Hi,
Thank you for your fast reply, but unfortunately, this solution did not solve my problem. I guess that the problem is that I am trying to add super-columns in a matrix using esttab. To create the several columns of my matrix, I use the stored columns in e() that I can get after I ran the several t-test with estpost. I am not running a regression.

The reason why I want to have these supercolumns is that it want to show that the columns N_1 and mu_1 both belong to "Domestic" and that the columns N_2 and mu_2 belong to "Foreign".

Isn't there a command in esttab that allows me to add super-columns above my matrix so that I can demonstrate that several columns belong together?

Best




-------- Original-Nachricht --------
> Datum: Sun, 18 Nov 2012 17:02:50 -0500
> Von: Ryan Kessler <ryan.kessler.stata@gmail.com>
> An: statalist@hsphsun2.harvard.edu
> Betreff: Re: st: Super-Columns with Esttab

> You could try using something like this:
> 
> sysuse auto
> eststo clear
> eststo: reg price foreign
> eststo: reg mpg foreign
> eststo: reg trunk foreign
> esttab, varlabels(foreign "Difference" _cons Domestic) se
> 
> Ryan Kessler
> 
> On Sun, Nov 18, 2012 at 2:15 PM,  <metoka2@gmx.de> wrote:
> > Dear members,
> >
> > this is my first post, so I hope it works. I am using estpost and esttab
> to export results from two-sample t-tests in a rtf-file, so that I can use
> the output in a word file. I am a stata beginner and also not very
> familiar with the estout package.
> > I tried to add super-columns above the names of my columns, but I
> couldn't figure out how to do it. I hope someone can help me.
> >
> > So far, my code looks like this:
> >
> > sysuse auto
> > estpost ttest price mpg trunk, by(foreign)
> > esttab using "myFileInRtfFormat.rtf", cells("N_1 mu_1 N_2 mu_2 b(star)
> se") ///
> >         noobs nonumber nomtitle modelwidth(8 8 7 8 8 8) replace
> >
> > I want to add the super-column "Domestic" above the columnnames N_1 and
> mu_1 (the super-column name "Domestic" should only be shown once), and I
> want to add the super-column "Foreign" above the columnnames N_2 and mu_2
> (also just once).
> >
> > I tried to add the super-columns with the following code:
> > equations(1) unstack eqlabels(Domestic Foreign)
> > But only "Domestic" is added then.
> >
> > How can I add Domestic and Foreign above the column names at the
> specific positions?
> >
> >
> > Thank you very much for your help!
> >
> > Metoka
> > *
> > *   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/
> *
> *   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/
*
*   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/


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