prodlim (version 2019.11.13)

crModel: Competing risks model for simulation

Description

Competing risks model for simulation

Usage

crModel()

Arguments

Value

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.

Author

Thomas A. Gerds

Details

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

This function requires the lava package.

Examples

Run this code
library(lava)
m <- crModel()
d <- sim(m,6)
print(d)

Run the code above in your browser using DataCamp Workspace