riskset_info: Extract risk set information for each interval.

Description Usage Arguments Value See Also Examples

View source: R/interval-information.R

Description

The columns ped_riskset, ped_events, ped_censored provide the size of the risk set at the beginning of each interval as well as the number of events and censorings that occurred in the interval, respectively.

Usage

1

Arguments

ped

An object of class ped as returned by as_ped.

Value

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

See Also

int_info, sample_info

Examples

1
2
ped <- tumor[1:4,] %>% as_ped(Surv(days, status)~ .)
riskset_info(ped)

adibender/ped documentation built on Dec. 16, 2019, 12:33 a.m.