>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/