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: combining tables with -outreg-


From   Sergiy Radyakin <serjradyakin@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: combining tables with -outreg-
Date   Wed, 3 Aug 2011 16:44:25 -0400

Hello Ricardo,

was your question specific to outreg or a general question, how to
export your results?

If your are not tied to -outreg-, you might also want to look at the
-xml_tab-, which can
combine different estimation results into one table as well as
multiple different tables into
different sheets of the same Excel-compatible (xml) document.

Best, Sergiy Radyakin





On Wed, Aug 3, 2011 at 9:41 AM, Ricardo Ovaldia <ovaldia@yahoo.com> wrote:
> I did not get a reply on my post, thus I assume that there is no way to do this other than to cut and paste.
>
> Ricardo Ovaldia, MS
> Statistician
> Oklahoma City, OK
>
>
> --- On Tue, 8/2/11, Ricardo Ovaldia <ovaldia@yahoo.com> wrote:
>
>> From: Ricardo Ovaldia <ovaldia@yahoo.com>
>> Subject: st: combining tables with -outreg-
>> To: statalist@hsphsun2.harvard.edu
>> Date: Tuesday, August 2, 2011, 7:56 AM
>> I am using the new -outreg- to create
>> a report that is made up of three tables.
>> Each table is made by merging 3 tables using
>> -outreg,merge-.
>> I want to use the new  -outreg, addtable- option to
>> combine these tables. Is there a way to do this?
>>
>> Here is a simple example using the auto data:
>>
>> . sysuse auto, clear
>> . qui regress mpg  weight
>> . qui outreg using auto1, nosubstat stats(b se )
>> nostar  ctitle(All) sdec(2,2) bfmt(f)  replace
>> . qui regress mpg  weight if foreign==0
>> . outreg using auto1, nosubstat stats(b se ) nostar
>> ctitle(Domestic) sdec(2,2) bfmt(f)  replace merge
>>
>> . qui regress mpg  weight
>> . qui outreg using auto2, nosubstat stats(b se )
>> nostar  ctitle(All) sdec(2,2) bfmt(f)  replace
>> . qui regress mpg  weight if foreign==1
>> . outreg using auto2, nosubstat stats(b se ) nostar
>> ctitle(Foreign) sdec(2,2) bfmt(f)  replace merge
>>
>> This code creates two separate tables by merging two other
>> tables. I would like both tables in one document.
>>
>> Thank you in advance,
>> Ricardo
>>
>>
>>
>> Ricardo Ovaldia, MS
>> Statistician
>> Oklahoma City, OK
>>
>> *
>> *   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