make_tab_survival | R Documentation |
Adds the column .time, which is the follow-up time
make_tab_survival(
tab,
vardep,
passage = 1,
typeCensure = 2,
dateInclusion = NULL,
dateSortie = NULL,
var_time = NULL,
limit = NULL
)
tab |
The data frame |
vardep |
The dependent variable |
passage |
If 1, The first level of the event variable is the absence of event; if 2, the second level is the absence of event |
typeCensure |
If 1: Follow-up time computed from 2 dates: inclusion and censor; \ If 2: the follow-up time is already inside a column |
dateInclusion |
Date vector of length equals to the number of rows of tab: inclusion date. |
dateSortie |
Date vector of length equals to the number of rows of tab: censor or event. |
var_time |
Name of the column indicating the follow-up time follow-up |
This function requires either var_time or dateSortie and dateInclusion
A table with .time column
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.