prodlim (version 2019.11.13)

SimCompRisk: Simulate competing risks data

Description

Simulate right censored competing risks data with two covariates X1 and X2. Both covariates have effect exp(1) on the hazards of event 1 and zero effect on the hazard of event 2.

Usage

SimCompRisk(N, ...)

Value

data.frame with simulated data

Arguments

N

sample size

...

do nothing.

Author

Thomas Alexander Gerds

Details

This function calls crModel, then adds covariates and finally calls sim.lvm.

Examples

Run this code

SimCompRisk(10)
            

Run the code above in your browser using DataLab