kogalur / randomForestSRC

DOCUMENTATION:
https://www.randomforestsrc.org/
GNU General Public License v3.0
113 stars 18 forks source link

no deaths in data error #325

Open psecekartal opened 1 year ago

psecekartal commented 1 year ago

Hello all,

We run random forest for our dat a which we check that we have positive events however we get this error below: code we use: rf1 <- rfsrc(Surv(Event_time, Event) ~ ., data = dff1, importance = FALSE)

Error in get.grow.event.info(yvar, family, ntime = ntime) : no deaths in data! Calls: subsample ... lapply -> FUN -> do.call -> rfsrc -> get.grow.event.info Execution halted

Could you please help how we can solve this issue. Thank you!

ishwaran commented 1 year ago

Can you show the summary on your data set "dff1" so that I can see the summary information on the outcomes?