Xsurv_predict_sv: This function allows you to predict a patient's survival...

View source: R/Xsurv_predict.R

Xsurv_predict_svR Documentation

This function allows you to predict a patient's survival curve

Description

This function allows you to predict a patient's survival curve

Usage

Xsurv_predict_sv(model, x_train, y_train, x_new, nc = 25)

Arguments

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

Value

predicted survival probabilty


topycyao/Xsurv documentation built on Aug. 6, 2022, 9:06 p.m.