riskset_info: Extract risk set information for each interval.

Description Usage Arguments Value See Also Examples

Description

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.

Usage

1

Arguments

ped

An object of class ped as returned by split_data.

Value

A data frame with one row for each interval in ped.

See Also

int_info, sample_info

Examples

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())

adibender/pamm documentation built on May 14, 2019, 5:22 p.m.