Learn R Programming

obliqueRSF (version 0.1.2)

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

Description

Grow an oblique random survival forest (ORSF)

Usage

# S3 method for orsf
print(x, ...)

Value

A printed summary of the oblique random survival forest.

Arguments

x

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

...

additional arguments passed to print

Examples

Run this code
if (FALSE) {
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)
}

Run the code above in your browser using DataLab