[R] Error in using coxph()

Peter Dalgaard p.dalgaard at biostat.ku.dk
Sun May 16 14:25:07 CEST 2004


Prof Brian Ripley <ripley at 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 at biostat.ku.dk)             FAX: (+45) 35327907




More information about the R-help mailing list