crdata: Data for Competing Risk Package

Description Usage Format

Description

Simulated time to event data, where there are two competing causes of failure. These data were generated to be used as an example data set along with the R package 'CompetingRisk'.

Usage

1

Format

A data frame with 250 observations on the following 5 variables.

times

a numeric vector of min(time to event, censoring time) for each individual.

status1

vector of indicators specifying that event 1 was the cause of failure (equals 1 for individuals where event 1 occured)

status2

vector of indicators specifying that event 1 was the cause of failure (equals 1 for individuals where event 2 occured)

x

numeric vector of biomarker of interest

Z

vector of discrete covariate values. Here Z takes on values 0 or 1.


mdbrown/survCompetingRisk documentation built on May 22, 2019, 3:23 p.m.