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]

st: outreg: merging results from several regressions


From   "Peter Neumayr" <peter.neumayr@gmx.at>
To   statalist@hsphsun2.harvard.edu
Subject   st: outreg: merging results from several regressions
Date   Sat, 02 Feb 2013 11:05:03 +0100

Hi!

I'm new to outreg. My task seems quite simple but i can't figure out how to do it. 
I try to produce a table where each column represent a model (e.g. OLS and IV) and each rows should present results from different regressions.

That means each table cell should contain a result from a specific regression.

The best I got so far is:
--------------------------------
          (1)         (2)     
--------------------------------
row1     57.202      75.419   
        (14.080)**  (15.056)** 
row2     65.463               
        (14.851)**             
row2     87.716               
        (16.065)**             
--------------------------------
	 * p<0.05; ** p<0.01

but what I want is:
--------------------------------
          (1)         (2)     
--------------------------------
row1     57.202      75.419   
        (14.080)**  (15.056)** 
row2     65.463      87.716          
        (14.851)**  (16.065)**             
--------------------------------
	 * p<0.05; ** p<0.01

I've used this code:

clear
sysuse auto
outreg, clear(t1)
qui reg price length
outreg, merge(t1) keep(length) se noautosum ctitle("", (1)) rtitle("row1") nod
qui reg price length rep78
outreg, append(t1) keep(length) se noautosum ctitle("", (1)) rtitle("row2") nod
qui ivreg price (length=weight)
outreg, merge(t1) keep(length) se noautosum ctitle("", (2)) rtitle("row1")
qui ivreg price (length=weight) rep78
outreg, append(t1) keep(length) se noautosum ctitle("", (2)) rtitle("row2")

Hoping for help!
Thanks a lot!
peter
*
*   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