# NOT RUN {
## Survival response example
library(survival)
library(MASS)
gbm_fit <- fit(Surv(time, status != 2) ~ sex + age + year + thickness + ulcer,
data = Melanoma, model = GBMModel)
predict(gbm_fit, newdata = Melanoma, times = 365 * c(2, 5, 10), type = "prob")
# }
Run the code above in your browser using DataLab