View source: R/MC_delay_crossover_median.R
Runs a Monte Carlo simulation for the treatment switching model with switch after delay
1 2 3 4 | MC_delay_crossover_median(n_c = 100, n_e = 100, median_c_1 = c(5, 10),
median_c_2 = 10, median_e = 15, delay = 5, end_event = 150,
rec_period = 12, rec_power = 1, p = 1, HR_fun, alpha = 0.025,
M = 100)
|
n_c |
Number of patients in control |
n_e |
Number of patients in experimental |
median_c_1 |
Median in control before switching (and for patients that do not switch) |
median_c_2 |
Median in control after switching (for the patients that switches) |
delay |
Delay time for when switching occurs |
end_event |
Number of events in the study |
rec_period |
Time for recruitment |
rec_power |
Variable for recruitment that follows the power model |
p |
Proportion(s) of patients that switches after the delay |
HR_fun |
Pre specified HR function |
alpha |
One-sided significance level |
M |
Number of simulations (for each p) |
median_e_1 |
Median in experimental |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.