sim.dat {CIFsmry}R Documentation

Simulated competing risk data

Description

Simulated data with 100 subjects and 3 variates: time, cause and group.

Format

The data has 100 rows and 3 columns.

time

a numeric vector. Survival time.

cause

a numeric vector code. Survival status. 1: failure from the cause of interest; 2: failure from other causes; 0: censored.

group

a numeric vector code. 1: group 1; 2: group 2.

Source

Simulated data

Examples

data(sim.dat)
names(sim.dat)
table(sim.dat$cause)
table(sim.dat$group)
tapply(sim.dat$time,sim.dat$group,summary)

[Package CIFsmry version 1.0.1.1 Index]