Description Usage Arguments Value References Examples
This function builds decision trees for discrete, right-censored survival data. The fitted tree estimates the hazard and survival probabilities for every terminal node, as well as the median survival time.
1 |
formula |
a |
status |
integer/string representing the column
number/name of the 'status' variable in the data frame.
'status' must be a binary integer variable indicating whether the event
occured ( |
data |
data frame that contains all variables stated
in the |
control |
a list of options that control
the specification of the |
weights |
a vector of optional case weights. |
An object of class DStree
. For details see
DStree.object
.
Bou-Hamad I., Larocque D., Ben-Ameur H., Masse L. C., Vitaro F. and Tremblay R. E. (2009), Discrete-Time Survival Trees. Canadian Journal of Statistics 37 (1), 17-32.
1 2 3 |
Loading required package: rpart
Loading required package: pec
Loading required package: prodlim
Loading required package: Ecdat
Loading required package: Ecfun
Attaching package: 'Ecfun'
The following object is masked from 'package:base':
sign
Attaching package: 'Ecdat'
The following object is masked from 'package:datasets':
Orange
Warning message:
labs do not fit even at cex 0.15, there may be some overplotting
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.