improper_tree {iBST} | R Documentation |
imprper survival tree
Description
Fit an improper survival tree for the mixed population (susceptible and nonsusceptible) using either the proposed pseudo R2 criterion or an adjusted Logrank criterion
Usage
improper_tree(xdata,
Y.names,
P.names,
T.names,
method = "R2",
args.rpart)
Arguments
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.
|
Value
An unprunned improper survival tree
Author(s)
Cyprien Mbogning and Philippe Broet
References
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.
See Also
Examples
## 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)