Competing risks model for simulation
Create a competing risks model with to causes to simulate a right censored event time data without covariates
This function requires the
A structural equation model initialized with four variables: the latent event times of two causes, the latent right censored time, and the observed right censored event time.
Thomas A. Gerds
library(lava) m <- crModel() d <- sim(m,6) print(d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.