Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: Stcox ereturn list: wrong chi2 p-value?s


From   Roy Wada <[email protected]>
To   <[email protected]>
Subject   Re: Stcox ereturn list: wrong chi2 p-value?s
Date   Sun, 21 Sep 2008 11:08:54 -0700

>that helped a lot. I just thought that these values are already stored
>somewhere, since they are reported when running the analysis.
>However calculating it by myself, then storing it with estadd, works
>just fine. Then it is also easy to use it with outreg2 using the
>addstats() option.
>
>dirk

Alternatively, you can use a local macro to store your 
calculated p-value, which can be plugged directly into
-outreg2-

webuse stan3, clear
stset
stcox age posttran surg yea
local prchi2= 1-chi2(e(df_m),e(chi2))
outreg2 using eraseMe, addstat(prchi2,`prchi2') replace

This is explained in the help file (-help outreg2-) under
"Example 7. Added statistics and notes."

Since this question comes up fairly often, it probably
needs to be made more explicit with better titles 
like "How to report missing p-values".

Roy

_________________________________________________________________
See how Windows connects the people, information, and fun that are part of your life.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/
*
*   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