print.orsf: Grow an oblique random survival forest (ORSF)

Description Usage Arguments Value Examples

View source: R/oblique_survival_forest_print.R

Description

Grow an oblique random survival forest (ORSF)

Usage

1
2
## S3 method for class 'orsf'
print(x, ...)

Arguments

x

an ORSF object (i.e. the object returned from the ORSF function)

...

additional arguments passed to print

Value

A printed summary of the oblique random survival forest.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
data("pbc",package='survival')
pbc$status[pbc$status>=1]=pbc$status[pbc$status>=1]-1
pbc$id=NULL
fctrs<-c('trt','ascites','spiders','edema','hepato','stage')
for(f in fctrs)pbc[[f]]=as.factor(pbc[[f]])
pbc=na.omit(pbc)

orsf=ORSF(data=pbc,ntree=30)
print(orsf)

## End(Not run)

obliqueRSF documentation built on March 14, 2019, 1:06 a.m.