View source: R/survival_time.R
survival_time | R Documentation |
This function calculates x-months survival grouped by an optional stratification argument.
survival_time(data, time, status, var = NULL, times)
data |
data.frame or data.table containing survival data. |
time |
The time interval from start of observation until date of event (e.g. disease progression or death) or censoring. |
status |
Variable specifying if event occured or data has been censored. Default behaviour inherited from the |
var |
Variable tested for Influence on outcome. |
times |
Time in months for which survival should be calculated. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.