R/table.events.R
table.events.RdFrom input data of the 'interval' type, with an event indicator, summary statistics for each risk set (at an event time point) are calculated.
table.events(enter = rep(0, length(exit)), exit, event, strict = TRUE)
| enter | Left truncation time point. |
|---|---|
| exit | End time point, an event or a right censoring. |
| event | Event indicator. |
| strict | If TRUE, then tabulating is not done after a time point where all individuals in a riskset failed. |
A list with components
Ordered distinct event time points.
Number of events at each event time point.
Number at risk at each event time point.
Göran Broström
#> $times #> [1] 1 2 4 #> #> $events #> [1] 1 1 1 #> #> $riskset.sizes #> [1] 5 4 2 #>