Description Usage Arguments Value
View source: R/survival_analysis.r
Univariate Survival Regression
1 2 3 4 5 6 7 8 9 10 |
data |
A dataframe including all the variable needed, one variable for time to event and one variable for event indicator. |
time |
Name of the variable used for time to event or for start time if Start-Stop format |
time2 |
Stop time if the data are in Start-Stop format |
event |
Name of the column used for event indicator. |
names |
Names of the variables to display. Lenght must be minus 2 the number of column of data, excluding time and event |
strata |
Name of the variable used for analysis with strata |
cluster |
Name of the variable used for analysis with cluster |
test |
Which test to use for p-value, possible values are "LRT" for Likelihood Ratio Test, "Wald" for Wald Test and "LogRank" for Log-Rank Test" |
Return a table with model parameters for every variable included in data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.