Skip to contents

Print ORSF summary

Usage

# S3 method for orsf_summary_uni
print(x, n_variables = NULL, ...)

Arguments

x

an object of class 'orsf_summary'

n_variables

The number of variables to print

...

Further arguments passed to or from other methods (not currently used).

Value

invisibly, x

Examples


object <- orsf(pbc_orsf, Surv(time, status) ~ . - id)

smry <- orsf_summarize_uni(object, n_variables = 3)

print(smry)
#> 
#> -- ascites (VI Rank: 1) ------------------------
#> 
#>        |---------------- Risk ----------------|
#>  Value      Mean    Median     25th %    75th %
#>      0 0.3095540 0.2080145 0.06803598 0.5316421
#>      1 0.4742295 0.4180727 0.27968103 0.6536291
#> 
#> -- bili (VI Rank: 2) ---------------------------
#> 
#>        |---------------- Risk ----------------|
#>  Value      Mean    Median     25th %    75th %
#>   0.80 0.2398849 0.1585009 0.05553424 0.3754319
#>   1.40 0.2607740 0.1741582 0.07493847 0.4080130
#>   3.52 0.3717890 0.3134872 0.17430285 0.5339749
#> 
#> -- edema (VI Rank: 3) --------------------------
#> 
#>        |---------------- Risk ----------------|
#>  Value      Mean    Median     25th %    75th %
#>      0 0.3038413 0.1961163 0.06567983 0.5153687
#>    0.5 0.3611400 0.2921362 0.10914346 0.6017384
#>      1 0.4571955 0.3990433 0.25939103 0.6518226
#> 
#>  Predicted risk at time t = 1788 for top 3 predictors