On 10 Mar 2003, Peter Dalgaard BSA wrote:

> "Song, Guangchun" <[EMAIL PROTECTED]> writes:
> 
> > Dear r-users,
> > 
> > I want to use the Cox's ph model to analyze survival data set.  How can I
> > extract the model coefs. and Wald test p-value or Score?
> 
> Unlike most other modelling code, summary.coxph() just prints its
> results rather than store them in an object that can be queried. So
> basically, you need to copy code from summary.coxph. It's not all that
> hard. 
> 
> 

On the other hand, you can do

> fit <- coxph(Surv(enter, exit, event) ~ season, data = rrv)
> coef(fit)
seasonspring seasonsummer   seasonfall 
   0.1900660   -0.4514284   -0.4560273 

and  'fit$score'  and  'fit$wald.test' to get score and Wald _statistics_. 

G�ran 
---
 G�ran Brostr�m                    tel: +46 90 786 5223
 Department of Statistics          fax: +46 90 786 6614
 Ume� University                   http://www.stat.umu.se/egna/gb/
 SE-90187 Ume�, Sweden             e-mail: [EMAIL PROTECTED]

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to