risksets: Finds the compositions and sizes of risk sets
Description
Focus is on the risk set composition just prior to a failure.
Usage
risksets(x, strata = NULL, max.survs = NULL, members = TRUE)
Arguments
x
A Surv object.
strata
Stratum indicator.
max.survs
Maximum number of survivors in each risk set. If
smaller than the 'natural number', survivors are sampled from the
present ones. No sampling if missing.
members
If TRUE, all members of all risk sets are listed in the
resulting list, see below.
Value
A list with components
Details
If the input argument max.survs is left alone, all survivors are
accounted for in all risk sets.