sim.idmModel {SmoothHazard} | R Documentation |
Simulate illness-death model data
Description
Function to simulate illness-death model data
Usage
## S3 method for class 'idmModel'
sim(
x,
n,
illness.known.at.death = TRUE,
compliance = 1,
latent = FALSE,
keep.inspectiontimes = FALSE,
...
)
Arguments
x |
An |
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 |
... |
Extra arguments given to |
Details
Based on the functionality of the lava PACKAGE
Value
A data set with interval censored observations from an illness-death model
Author(s)
Thomas Alexander Gerds
Examples
example(idmModel)
help(idmModel)
[Package SmoothHazard version 2024.04.10 Index]