Simulates data from multiple piecewise constant baseline hazards for competing risks. Takes the minimum of all cause-specific event times and assigns the corresponding cause.
rchazl(cumhaz, rr, causes = NULL, ...)A data frame with event times and status indicating the cause of the first event.
List of cumulative hazard matrices, one for each cause.
Matrix of relative risks (rows = subjects, columns = causes).
Vector of cause codes to assign (default NULL, uses 1,2,...).
Additional arguments passed to rchaz.
Thomas Scheike
rchaz