Description Usage Arguments Value Author(s) Examples
This function generates a number at risk table that typically seen in publications.
1 | get_nrisk_tbl(sfit, timeby)
|
sfit |
A survival::survfit object. |
timeby |
The "step" in which to calculate the risk. |
A data.frame with the number of risks at each timeby step.
Abhijit Dasgupta https://gist.github.com/araastat/9927677.
1 2 | fit <- survival::survfit(survival::Surv(time,status) ~ rx, data = survival::colon)
get_nrisk_tbl(fit, timeby = 500)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.