crModel | R Documentation |

Competing risks model for simulation

```
crModel()
```

Create a competing risks model with to causes to simulate a right censored event time data without covariates

This function requires the `lava`

package.

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)
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.