sim.survIC: Simulate interval censored survival data

View source: R/simSurvIC.R

sim.survICR Documentation

Simulate interval censored survival data

Description

Function to simulate interval censored survival data

Usage

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

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

Details

Based on the functionality of the lava PACKAGE

Value

A data set with interval censored observations

Author(s)

Thomas Alexander Gerds

Examples

library(lava)
example(survIC)
help(survIC)
ol <- survIC()
dat.ol <- sim(ol,10)

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