View source: R/improper_tree.R
improper_tree | R Documentation |
Fit an improper survival tree for the mixed population (susceptible and nonsusceptible) using either the proposed pseudo R2 criterion or an adjusted Logrank criterion
improper_tree(xdata, Y.names, P.names, T.names, method = "R2", args.rpart)
xdata |
The learning data frame |
Y.names |
A vector of the names of the two variables of interest (the time-to-event is follow by the event indicator) |
P.names |
The names of independant variables acting on the non-susceptible population (the plateau) |
T.names |
The names of independant variables acting on the survival of the susceptible population |
method |
The choosen method (either |
args.rpart |
The improper survival tree parameters: a list of options that control details of the rpart algorithm.
|
An unprunned improper survival tree
Cyprien Mbogning and Philippe Broet
Mbogning, C. and Broet, P. (2016). Bagging survival tree procedure for variable selection and prediction in the presence of nonsusceptible patients. BMC bioinformatics, 17(1), 1.
Bagg_Surv
Bagg_pred_Surv
## Not run: data(burn) myarg = list(cp = 0, maxcompete = 0, maxsurrogate = 0, maxdepth = 3) Y.names = c("T3" ,"D3") P.names = 'Z2' T.names = c("Z1", paste("Z", 3:11, sep = '')) burn.tree <- suppressWarnings(improper_tree(burn, Y.names, P.names, T.names, method = "R2", args.rpart = myarg)) plot(burn.tree) text(burn.tree, cex = .7, xpd = TRUE) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.