sim.idmModel: Simulate illness-death model data

View source: R/simulateIDM.R

sim.idmModelR 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 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

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)

tagteam/SmoothHazard documentation built on April 5, 2024, 6:32 a.m.