print.rocTree {rocTree} | R Documentation |
rocTree
objectThe function prints an rocTree
object. It is a method for the generic function print of class "rocTree
".
## S3 method for class 'rocTree'
print(x, digits = 5, tree = NULL, ...)
x |
an |
digits |
the number of digits of numbers to print. |
tree |
an optional integer specifying the |
... |
for future development. |
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)