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

View source: R/oblique_survival_forest_print.R

print.orsfR Documentation

Grow an oblique random survival forest (ORSF)

Description

Grow an oblique random survival forest (ORSF)

Usage

## 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

## 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 Aug. 29, 2022, 1:07 a.m.