« Return to Thread: retrieve p-value from a cox.obj

Re: retrieve p-value from a cox.obj

by Bernardo Rangel tura :: Rate this Message:

Reply to Author | View in Thread

On Wed, 2007-08-29 at 08:40 -0700, clearsky wrote:
> I have a cox.obj named obj,
> obj <- coxph( Surv(time, status) ~ group, surv.data)
> now I want to retrieve the p-value from obj, so that I can run this hundreds
> of times and plot out the distribution of the p-value. could anyone tell me
> how to get p-value from obj?
>
> thanks,
Hi Clearsky

try: summary(obj)$waldtest[3]


--
Bernardo Rangel Tura, M.D,Ph.D
National Institute of Cardiology
Brazil

______________________________________________
R-help@... mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

 « Return to Thread: retrieve p-value from a cox.obj