summary(ma.dati2$death.status)<- censoring Min. 1st Qu. Median Mean 3rd Qu. Max. NA's 0.00000 0.00000 0.00000 0.05332 0.00000 1.00000 39.00000 ################################## > summary(ma.dati2$time.death)<--- time Min. 1st Qu. Median Mean 3rd Qu. Max. NA's 1 370 370 356 370 370 39 #################################### formula timi.out <- rsf(Survrsf(time.death,death.status)~sex, ma.dati2.rid, ntree = 1000,na.action='na.omit') Errore in rsf.default(Survrsf(time.death, death.status) ~ sex, ma.dati2.rid[, : Outcome is not a random survival object. Use 'Survrsf' for the formula. But time.death is strictly positivi and death.status assume only two value:,0,1. Where is the error??? TIA Giovanni
[[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.