Function to nicely display survival time summaries at discrete times
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
data |
datafrmae |
time |
survival time |
status |
indication of censored or observed data |
group |
the variable to group observations by |
survtimes |
numeric vector specifying the times to calculate survival at |
survtimeunit |
the unit of time that should be indicated in the tables (days, years, etc) |
grpLabel |
character value describing the grouping variable |
survtimesLbls |
if supplied, a vector the same length as survtimes with descriptions (useful for displaying years with data provided in months) |
digits |
the number of digitis to display |
caption |
table caption |
tblOnly |
should a dataframe or a formatted object be returned |
showN |
should the sample sizes be displayed |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.