Learn R Programming

SmoothHazard (version 2024.04.10)

sim.survIC: Simulate interval censored survival data

Description

Function to simulate interval censored survival data

Usage

# S3 method for survIC
sim(x, n, compliance = 1, latent = TRUE, keep.inspectiontimes = FALSE, ...)

Value

A data set with interval censored observations

Arguments

x

An survIC object as obtained with survIC

n

Number of observations

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 code
library(lava)
example(survIC)
help(survIC)
ol <- survIC()
dat.ol <- sim(ol,10)

Run the code above in your browser using DataLab