sim_surv_tree: Simple survival tree

View source: R/sim_surv_tree.R

sim_surv_treeR Documentation

Simple survival tree

Description

This function allows you to find risk level automatically with xgbor lgb object.

Usage

sim_surv_tree(model, x_data, y_data, top_nc = NULL, maxdp = NULL, cp = NULL)

Arguments

model

lightgbm model object

x_data

X data set

y_data

Y data set

top_nc

numbers of top features selected

maxdp

max depth for rpart tree

cp

complexity param for rpart tree

Value

a list contains 1.rpart tree;2.ctree


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