Description Usage Arguments Value See Also Examples
Creates a table for each risk, containing number of observation at risk in given time points in groups.
1 |
time |
vector with times of the first event or follow-up, must be numeric. |
risk |
vector with type of event, can be numeric or factor/character. |
group |
vector with group variable, can be numeric or factor/character. |
cens |
value of 'risk' indicating censored observation (if NULL, the first value of 'risk' vector will be taken). |
title |
title of a table |
A grob with n tables, where n is number of risks. Each table contains number of observations at risk in each group in given time points (the time points correspond to breaks at x-axis of plots with survival curves).
1 2 |
Loading required package: ggplot2
Loading required package: survival
Loading required package: cmprsk
Loading required package: gridExtra
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.