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 ______________________________________________ [EMAIL PROTECTED] mailing list http://www.stat.math.ethz.ch/mailman/listinfo/r-help
