rLogrank {safestats} | R Documentation |
Randomly samples from a logrank distribution
Description
Draws a number of occurrences in group 1 (treatment) out of obsTotal number of occurrences.
Usage
rLogrank(n = 1, y0, y1, obsTotal, theta)
Arguments
n |
integer, number of observations to be sampled. |
y0 |
Size of the risk set of group 0 (Placebo). |
y1 |
Size of the risk set of group 1 (Treatment). |
obsTotal |
Total number of observations. |
theta |
Odds of group 1 over group 0 (treatment over placebo). |
Value
integer representing the number of occurrences in group 1 out of obsTotal number of occurrences.
Author(s)
Muriel Felipe Perez-Ortiz and Alexander Ly
Examples
rLogrank(y0=360, y1=89, obsTotal=12, theta=3.14)
[Package safestats version 0.8.7 Index]