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: AW: RE: -outreg2- super-rows and super-columns


From   Kelvin Tan <kelvin.tan.statalist@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: AW: RE: -outreg2- super-rows and super-columns
Date   Mon, 19 Apr 2010 09:38:13 +1000

Hi Nick, Martin, Abdel and Roy,

Thanks for your contribution. I really appreciate it. The latest
version of -outre2- (*! outreg2 2.2.4 12apr2010) has solved my
problem. However, can I raise two questions here?

First question: Super-row did not create a super-row with the first
time I used -outreg2- code (see below); however, -outreg2- did create
a super-row when I used it a second time. Do you know why? I was just
curious about it. However, I am happy to live with what we have now.

Second question:  In the following code, we can create a super-column
(thanks Roy) based on the value of coefficients. I was wondering if we
can modify the following code to create a hypotheses column with our
choice of signs (+ or - or ?)  not the value of coefficients?. For
example: I would like to have a "-" sign for gear_ratio and a "?" for
length.

Thanks.

Regards,
Kelvin TAN

-----Begin Code-----
sysuse auto, clear
reg headroom length gear_ratio
outreg2 using myfile, stats(coef) stnum(gen temp=coef) /*
 */ ststr(replace coef="(+)" if temp<., replace coef="(-)" if temp<0) /*
 */  groupvar(gear_ratio length Group3) replace noaster
outreg2 using myfile, groupvar(gear_ratio length Group3)
---- End Code ------



On Mon, Apr 19, 2010 at 8:57 AM, Kelvin Tan
<kelvin.tan.statalist@gmail.com> wrote:
> All my posts were based on the latest -ssc- version. Therefore, Martin
> and I were using the same version.
>
> Regards,
> Kelvin
>
> *! outreg2 2.2.3 04apr2009 by roywada@hotmail.com
> *! based on outreg 3.0.6/4.0.0 by john_gallup@alum.swarthmore.edu
>
> On Fri, Apr 16, 2010 at 12:23 AM, Martin Weiss <martin.weiss1@gmx.de> wrote:
>>
>> <>
>>
>> " I can't tell, naturally, who contributing to this thread has which
>> version"
>>
>>
>> All my posts were based on the latest -ssc- version.
>> *! outreg2 2.2.3 04apr2009
>>
>> HTH
>> Martin
>>
>>
>> -----Ursprüngliche Nachricht-----
>> Von: owner-statalist@hsphsun2.harvard.edu
>> [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Nick Cox
>> Gesendet: Donnerstag, 15. April 2010 15:22
>> An: statalist@hsphsun2.harvard.edu
>> Betreff: st: RE: -outreg2- super-rows and super-columns
>>
>> In addition to other comments:
>>
>> I note that -outreg2- has been very recently revised on SSC: the stated
>> date of 4 April 2009 is I think a typo for 4 April 2010.
>>
>> . ssc type outreg2.ado
>> *! outreg2 2.2.3 04apr2009 by roywada@hotmail.com
>> *! based on outreg 3.0.6/4.0.0 by john_gallup@alum.swarthmore.edu
>>
>> I can't tell, naturally, who contributing to this thread has which
>> version, but it may be that different experiences arise because some are
>> and some aren't being bitten by a small bug introduced accidentally
>> during the latest revision.
>>
>> In his help Roy Wada details how to report a possible error. His email
>> address is  roywada@hotmail.com
>>
>> "How to report a possible error
>>
>>    1. it's best if you send an example using -sysuse- or -webuse- data
>>    2. create a trace log file containing the error
>>    3. Send them to whoever wrote the thing and ask nicely.
>>
>>    cap log close
>>    log using mylog.txt, text replace
>>    which outreg2                 /* or whatever command you are dealing
>> with */
>>    cret list
>>    sysuse auto, clear            /* or whatever data you are using */
>>    reg rep78 trunk turn foreign  /* or whatever you are doing */
>>    set trace on
>>    outreg2 using myfile, replace /* or whatever that gets you the error
>> */
>>    log close
>> "
>>
>> Nick
>> n.j.cox@durham.ac.uk
>>
>> Kelvin Tan
>>
>> I follow the helpfile from -outreg2- to create a supper-row, but I
>> obtained the following error message. Can anyone give me some advice
>> on this?
>>
>> variable varname not found
>> r(111);
>>
>> ---- Begin Code ----
>> sysuse auto, clear
>> reg mpg rep78 head weight turn disp gear
>> outreg2 using myfile, groupvar(Group1 trunk turn head weight Group2) see
>> --- End Code ----
>>
>>
>> Is it possible to create a "super-column" - a empty column? or is it
>> possible to create a "predicted sign column" (see below) with outreg2
>> in stata, then covert it into a Latex format? I need this predicted
>> column because it is very hard to create a column in a Latex table.
>>
>>
>> Variable |Predicted Sign| Coefficients
>> trunk  (+)       -0.316**
>>                 (0.134)
>> turn       (-)      -0.761***
>>                  (0.131)
>> Constant          55.82***
>>                 (4.354)
>>
>> Observations    74
>> R-squared       0.552
>>
>> *
>> *   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