[R] help--Cox ph model

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Mon Mar 10 22:18:57 CET 2003


"Song, Guangchun" <Guangchun.Song at stjude.org> 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. 

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907



More information about the R-help mailing list