Description Usage Arguments Value Examples
Sim indicator of stageshift from binomial
1  | stageshift_indicator(x, pop_size, nsim)
 | 
x | 
 Hazard ratio for early detection (i.e., 1-proportion stage shifted)  | 
pop_size | 
 Population size  | 
nsim | 
 Number of sims  | 
Matrix of 1s and 0s
1 2  | # Hazard = 0.85, e.g. 15% probability of being stage-shifted
round(mean(stageshift_indicator(0.85, 1000, 1)),2)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.