print.rocTree {rocTree} | R Documentation |
Printing an rocTree
object
Description
The function prints an rocTree
object. It is a method for the generic function print of class "rocTree
".
Usage
## S3 method for class 'rocTree'
print(x, digits = 5, tree = NULL, ...)
Arguments
x |
an |
digits |
the number of digits of numbers to print. |
tree |
an optional integer specifying the |
... |
for future development. |
Examples
data(simDat)
## Fitting a pruned survival tree
rocTree(Surv(Time, death) ~ z1 + z2, id = id, data = simDat, ensemble = FALSE)
## Fitting a unpruned survival tree
rocTree(Surv(Time, death) ~ z1 + z2, id = id, data = simDat, ensemble = FALSE,
control = list(numFold = 0))
## Not run:
## Fitting the ensemble algorithm (default)
rocTree(Surv(Time, death) ~ z1 + z2, id = id, data = simDat, ensemble = TRUE)
## End(Not run)
[Package rocTree version 1.1.1 Index]