sim.idmModel: Simulate illness-death model data
Description
Function to simulate illness-death model data
Usage
# S3 method for idmModel
sim(
x,
n,
illness.known.at.death = TRUE,
compliance = 1,
latent = FALSE,
keep.inspectiontimes = FALSE,
...
)
Value
A data set with interval censored observations from an illness-death model
Arguments
- x
An idmModel
object as obtained with
idmModel
- n
Number of observations
- illness.known.at.death
Affects the value of variable
seen.ill
- compliance
Probability of missing an inspection time.
- latent
if TRUE keep the latent event times
- keep.inspectiontimes
if TRUE
keep the inspection
times.
- ...
Extra arguments given to sim
Author
Thomas Alexander Gerds
Details
Based on the functionality of the lava PACKAGE
Examples
Run this codeexample(idmModel)
help(idmModel)
Run the code above in your browser using DataLab