Statalist


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

AW: st: AW: how to indicate rho, sigma, and lambda in treatreg using estout


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   AW: st: AW: how to indicate rho, sigma, and lambda in treatreg using estout
Date   Wed, 16 Sep 2009 10:02:13 +0200

<> 

The  /* and */ are meant to prevent Stata from assuming that the line had
ended. See -help comments-. Either paste my code into the do-file editor
(type -doedit- to get there) and run it from there, or remove the /* and */
and run the commands interactively.


HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von N Fukugawa
Gesendet: Mittwoch, 16. September 2009 09:52
An: [email protected]
Betreff: Re: st: AW: how to indicate rho, sigma, and lambda in treatreg
using estout

as shown below option / is not allowed in eststo.


. webuse labor, clear
. generate byte wc = 0
. replace wc = 1 if we > 12
(69 real changes made)
.
. treatreg ww wa cit, /*
option treat() required
r(198);
.
. */ treat(wc=wmed wfed)
.
.
. esttab using esttab.txt, replace /*
option / not allowed
r(198);
.
. */ scalar("rho Rho" /*

.
. */ "sigma Sigma" "lambda Lambda" /*

.
. */ "p_c P-Value for LR test") /*

.
. */ drop(athrho: lnsigma:) /*


. */ star(* 0.05 ** 0.01)




On Wed, Sep 16, 2009 at 4:32 PM, Martin Weiss <[email protected]> wrote:
>
> <>
>
>
>
> *************
> webuse labor, clear
> generate byte wc = 0
> replace wc = 1 if we > 12
>
> treatreg ww wa cit, /*
> */ treat(wc=wmed wfed)
>
> esttab using esttab.txt, replace /*
> */ scalar("rho Rho" /*
> */ "sigma Sigma" "lambda Lambda" /*
> */ "p_c P-Value for LR test") /*
> */ drop(athrho: lnsigma:) /*
> */ star(* 0.05 ** 0.01)
> *************
>
>
>
> HTH
> Martin
>
> -----Ursprüngliche Nachricht-----
> Von: [email protected]
> [mailto:[email protected]] Im Auftrag von N Fukugawa
> Gesendet: Mittwoch, 16. September 2009 09:19
> An: [email protected]
> Betreff: st: how to indicate rho, sigma, and lambda in treatreg using
estout
>
> statalisters,
> i ran treatment regression model using estout in stata11.
>
> bys sector2: eststo: treatreg tfpg lsales esty , treat(bca= sub
> subsidiary ,noc)
>
> estout using estout.txt, starlevels(* 0.05 ** 0.01) cells(b(star
> fmt(4)) se( fmt(4)))  numbers("Model ") mlabels(, depvar)
> collabels(none) stats(r2_p N cmd, fmt(%9.3f %9.0g)) replace
>
> although the result window of stata indicates rho, sigma, and lambda
> as follows, they do not appear in estout.txt.
> furthermore, i would like to include the result of wald test for rho
> (0.0000 in this case) in estout.txt.
> thank you in advance.
>
>
-------------+--------------------------------------------------------------
> --
>     /athrho |  -.3747398   .0711001    -5.27   0.000    -.5140933
> -.2353862
>    /lnsigma |  -1.703365   .0153075  -111.28   0.000    -1.733367
> -1.673362
>
-------------+--------------------------------------------------------------
> --
>         rho |  -.3581306   .0619809                     -.4731284
> -.2311331
>       sigma |   .1820699    .002787                      .1766885
> .1876152
>      lambda |  -.0652048   .0121928                     -.0891022
> -.0413074
>
----------------------------------------------------------------------------
> --
> Wald test of indep. eqns. (rho = 0): chi2(1) =    27.78   Prob > chi2 =
> 0.0000
>
----------------------------------------------------------------------------
> --
> *
> *   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index