View source: R/Xsurv_predict.R
Xsurv_predict_sv | R Documentation |
This function allows you to predict a patient's survival curve
Xsurv_predict_sv(model, x_train, y_train, x_new, nc = 25)
model |
xgboost or lightgbm model object |
x_train |
X train data set |
y_train |
Y trian data set |
nc |
number of cutting points defaut is 25, and 20-30 is recommended |
x_test |
X test data set |
nq |
quantile of train data time in each cut group for prediction time |
predicted survival probabilty
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.