sim.survIC {SmoothHazard} | R 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 |
n |
Number of observations |
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
Author(s)
Thomas Alexander Gerds
Examples
library(lava)
example(survIC)
help(survIC)
ol <- survIC()
dat.ol <- sim(ol,10)
[Package SmoothHazard version 2024.04.10 Index]