# NOT RUN {
library(survival)
Formula = Surv(Start, Stop, Event) ~ age + alk.phos + ast + chol + edema
# Built a LTRCCF forest on the time-varying data by specifying id, with mtry specified:
LTRCCFobj = ltrccf(formula = Formula, data = pbcsample, id = ID, mtry = 3, ntree = 50L)
print(LTRCCFobj)
# Built a LTRCCF forest on the time-invariant data, with resampling, with mtry specified:
LTRCCFobj = ltrccf(formula = Formula, data = pbcsample, samptype = "swr",
mtry = 3, ntree = 50L)
print(LTRCCFobj)
# }
Run the code above in your browser using DataLab