Description Usage Arguments Value See Also Examples
The columns ped_riskset, ped_events, ped_censored
provide the
size of the riskset at the beginning of each interval as well as the number
of events and censorings that occured in the interval, respectively.
1 | riskset_info(ped)
|
ped |
An object of class |
A data frame with one row for each interval in ped
.
1 2 3 4 5 6 7 8 | data("veteran", package="survival")
ped <- split_data(Surv(time, status)~ ., data = veteran, id = "id",
cut = seq(0,400, by = 100))
riskset_info(ped)
(riskset_celltype <- riskset_info(group_by(ped, celltype)))
## add descriptive statistics for riskset at beginning of each interval:
# left_join(riskset_celltype,
# group_by(ped, celltype, interval) %>% sample_info())
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.