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: outreg2 with different dependent variables


From   Caterina Astarita <lasta01@students.bbk.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   st: outreg2 with different dependent variables
Date   Wed, 27 Oct 2010 16:05:27 +0100 (BST)

Dear all, 

I need some help with the command outreg2. I would like to 
show in the same table two or more different 
model with the same independent variable but with different 
dependent variables that in my case are different kind of 
crime

The command I use give me separate files, one for each 
dependent variable. 

I run for example

xtreg lnscippo ginirfw199fit unkscippo unratm gdp95pc growth  
t11-t17,fe robust
outreg2 using lnscippo, ctitle(Model) bdec(5) tdec(2) rdec(2) 
adec(2) alpha(.01, .05, .10) addstat(Adj. R-squared, e(r2_a)) 
addnote(Put your notes here.) word replace

xtreg lnuffpubb ginirfw199fit unkuffpubb  unratm gdp95pc 
growth  t11-t17,fe robust
outreg2 using lnuffpubb, ctitle(Model) bdec(5) tdec(2) rdec(2) 
adec(2) alpha(.01, .05, .10) addstat(Adj. R-squared, e(r2_a)) 
addnote(Put your notes here.) word append

how can I modify the command in order to get only one file? 

Thank you 
*
*   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