[R] Survr error

Jonathan Williams jonathan.williams at pharmacology.oxford.ac.uk
Fri Jan 17 18:31:03 CET 2003


I am trying to analyse recurrent failure times using survfitr
from the survrec package. To do this, I need to "Create a survival 
recurrent object" using Survr. But, when I do this, I get an error
"Error in Survr(r1d[, 1], r1d[, 5], r1d[, 6]) : data doesn't match".

Here, r1d[,1] is the identifier for each case, r1d[,5] is the time
of recurrence, r1d[,6] is the status indicator (1=event, 0=censored).
All columns of of r1d are numeric.

I can create a Surv object using Surv(r1d[,5],r1d[,6]), which looks
OK (censored values are followed by a '+'). So, the difficulty would
seem to be with the 'id' argument of Survr. In my program, r1d[,1]
is a simple numeric vector, which I have put into the data frame
r1d.

I would be grateful fi anyone could let me know how to use Survr
so that I can run survfitr.

Thanks,

Jonathan Williams

OPTIMA
Radcliffe Infirmary
Woodstock Road
OXFORD OX2 6HE
Tel +1865 (2)24356




More information about the R-help mailing list