crModel: Competing risks model for simulation

Description Usage Details Value Author(s) Examples

View source: R/crModel.R

Description

Competing risks model for simulation

Usage

1

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.

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(s)

Thomas A. Gerds

Examples

1
2
3
4
library(lava)
m <- crModel()
d <- sim(m,6)
print(d)

prodlim documentation built on Nov. 17, 2019, 5:06 p.m.

Related to crModel in prodlim...