Re: [R] Error in using coxph()

About this list Date view Thread view Subject view Author view Attachment view

From: Peter Dalgaard (p.dalgaard@biostat.ku.dk)
Date: Sun 16 May 2004 - 22:25:07 EST


Message-id: <x2vfiwv9ss.fsf@biostat.ku.dk>

Prof Brian Ripley <ripley@stats.ox.ac.uk> writes:

> Note you said you used 1-F but the output said you used F. You also say
> `1-F is a vector of '0's' so I think you may have declared that all
> observations are right-censored. (NB if you give Surv an event vector of
> all 1's it is ambiguous, so don't do this.)

Actually, it *is* documented that this is interpreted as "all-died"
and the advice in ?Surv is just to avoid 1/2 coding if all data are
censored. It's a bit puzzling that we don't allow explicit
disambiguation (e.g., by passing the event as a two-level factor),
though.

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

______________________________________________ R-help@stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:11 EST