Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: outreg: merging results from several regressions


From   "Peter Neumayr" <[email protected]>
To   [email protected]
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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index