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)
#> 
#> -- bili (VI Rank: 1) ---------------------------
#> 
#>        |---------------- risk ----------------|
#>  Value      Mean    Median     25th %    75th %
#>   0.80 0.2315227 0.1212948 0.04134160 0.3767003
#>    1.4 0.2544993 0.1359760 0.05636234 0.4160009
#>    3.5 0.3816900 0.2855803 0.17577290 0.5621734
#> 
#> -- age (VI Rank: 2) ----------------------------
#> 
#>        |---------------- risk ----------------|
#>  Value      Mean    Median     25th %    75th %
#>     42 0.2760513 0.1310790 0.04076675 0.4663120
#>     50 0.3027324 0.1689895 0.04344668 0.5388785
#>     57 0.3355863 0.2127878 0.06760490 0.5696207
#> 
#> -- copper (VI Rank: 3) -------------------------
#> 
#>        |---------------- risk ----------------|
#>  Value      Mean    Median     25th %    75th %
#>     43 0.2671665 0.1380190 0.04271571 0.4497905
#>     74 0.2840888 0.1573963 0.05136569 0.4654656
#>    129 0.3391138 0.2334977 0.10004177 0.5564586
#> 
#>  Predicted risk at time t = 1788 for top 3 predictors