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]

RE: st: RE: outreg2 with different dependent variables


From   "Sarah Edgington" <[email protected]>
To   <[email protected]>
Subject   RE: st: RE: outreg2 with different dependent variables
Date   Wed, 27 Oct 2010 11:21:41 -0700

.
The second command already includes append (the outreg2 command wraps across
multiple lines in my email reader making it harder to spot).  Specifying
append doesn't change which file gets written to, just whether it gets
overwritten or added onto.  The second outreg2 command will append results
onto the existing lnuffpubb file if you run the command multiple times.
-Sarah 

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of William Buchanan
Sent: Wednesday, October 27, 2010 11:14 AM
To: [email protected]
Subject: Re: st: RE: outreg2 with different dependent variables

You could also use the "append" sub-command under outreg2.


On 10/27/10 2:09 PM, "Sarah Edgington" <[email protected]> wrote:

> .
> You want to specify the same file name after the using statement in 
> each of your outreg2 commands.  Currently Stata is writing the first 
> results to a file called lnscippo and the second set to a file called
lnuffpubb.
> 
> -Sarah
> 
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Caterina 
> Astarita
> Sent: Wednesday, October 27, 2010 8:05 AM
> To: [email protected]
> Subject: st: outreg2 with different dependent variables
> 
> 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/
> 
> *
> *   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index