Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: RE: Wald test using estout


From   "Guillermo Vuletin" <[email protected]>
To   [email protected]
Subject   RE: st: RE: Wald test using estout
Date   Sat, 30 Jul 2005 16:52:22 -0400

Thanks a lot!

From: "Jann  Ben" <[email protected]>
Reply-To: [email protected]
To: <[email protected]>
Subject: st: RE: Wald test using estout
Date: Sat, 30 Jul 2005 21:31:39 +0200

Guillermo wrote:
> * Suppose I have:
> Y= b1*x+b2*z+b3*w
>
> To test b1=b2 I do
> test x= z
>
> And I can store the p-value associated with such test by doing
> Local F1=r(p)
>
>
> * How can I put this value F1 in my table using the command estout

The solution is to add the statistic to e(). For example, use
the -eret2- program (available from SSC, type -ssc install eret2-):

 . reg Y x z w
 . test x=z
 . eret2 scalar p_xz = r(p)
 . estout , stat(p_xz)

Also see -estadd- (type -ssc describe estadd-).

ben

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* 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