How can I calculate survival function in gbm package analysis?
问题 I would like to analysis my data based on the gradient boosted model. On the other hand, as my data is a kind of cohort, I have a trouble understanding the result of this model. Here's my code. Analysis was performed based on the example data. install.packages("randomForestSRC") install.packages("gbm") install.packages("survival") library(randomForestSRC) library(gbm) library(survival) data(pbc, package="randomForestSRC") data <- na.omit(pbc) set.seed(9512) train <- sample(1:nrow(data), round