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

st: RE: Using cox regression output in a program


From   "FEIVESON, ALAN H. (AL) (JSC-SD) (NASA)" <alan.h.feiveson@nasa.gov>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Using cox regression output in a program
Date   Fri, 14 Feb 2003 12:26:56 -0600

Which p-value are you referring to? The one for the overall fit? The test
that one of the indiividual coefficients is zero? After estimation, you can
get the overall p-value by referring to e(chi2) and e(df_m), then
calculating  the p-value using the chiprob( ) function. For example, you
could do

scalar prob= chiprob(e(df_m), e(chi2))

For the individual p-values on coeficients, you can get the values and
standard errors using e(b) and e(V), then calculate the p-values yourself,
assuming a normal distribution. 

Al Feiveson



-----Original Message-----
From: spok [mailto:spok_1@yahoo.com]
Sent: Friday, February 14, 2003 2:09 AM
To: statalist@hsphsun2.harvard.edu
Subject: st: Using cox regression output in a program


Hello,

I want to use the p-value produced by stcox as a
variable in a program.  How to I refer to this
variable?  Thank you.



__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com
*
*   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/
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index