The quotes ` ' are optional.
Nick
[email protected]
Maarten buis
--- On Fri, 27/3/09, moleps islon wrote:
> I need to save multiple p-values from the estat phtest
> postestimated cox analysis, preferably in a way that
> esttab would let me display them afterwards. However
> the only values returned are r(chi2) and r(df). This
> problem was addressed in the statalist back in 2007 as
> well by Jebsen. The answer though seems elusive.
There is nothing elusive about this, Stata has given
you all the information you need. The p-value is:
chi2tail(`r(df)',`r(chi2)')
You can store that number in a matrix or as a local,
or display it on screen using -display-.
*
* 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/