View source: R/oblique_survival_forest_print.R
print.orsf | R Documentation |
Grow an oblique random survival forest (ORSF)
## S3 method for class 'orsf' print(x, ...)
x |
an ORSF object (i.e. the object returned from the ORSF function) |
... |
additional arguments passed to print |
A printed summary of the oblique random survival forest.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.