rinterval | R Documentation |
Function to generate a random sample of type I and type II interval censored survival data.
rinterval(time, tau, type = c("I", "II"), prob)
time |
a numeric vector of survival times. |
tau |
either a vector of censoring times (for type I interval-censored survival data) or time grid of scheduled visits (for type II interval censored survival data). |
type |
type of interval-censored survival data (I or II). |
prob |
= 0.5 attendance probability of scheduled visit; ignored when type = I. |
a data.frame containing the generated random sample.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.