print.rocTree: Printing an 'rocTree' object

Description Usage Arguments Examples

View source: R/print.rocTree.R

Description

The function prints an rocTree object. It is a method for the generic function print of class "rocTree".

Usage

1
2
## S3 method for class 'rocTree'
print(x, digits = 5, tree = NULL, ...)

Arguments

x

an rocTree object.

digits

the number of digits of numbers to print.

tree

an optional integer specifying the n^{th} tree in the forest to print. The function prints the contents of an rocForest object by default, if a tree is not specified.

...

for future development.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
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)

rocTree documentation built on Aug. 1, 2020, 5:06 p.m.