Description Usage Arguments Value Examples
Simulate right-censored survival responses in two groups
1 | get.survival.data(n, num.times, p1 = NULL, p2 = NULL)
|
n |
the number of observations |
num.times |
the number of time points at which events or right-censors can occur |
p1 |
the proportion of events in the first group, by default NULL which takes p1 to be random |
p2 |
the proportion of events in the second group, by default NULL which takes p1 to be random |
a dataframe with three columns: group, time, and status
1 | dat <- FragilityTools:::get.survival.data(n = 100, num.times = 6)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.