Description Usage Arguments Value
View source: R/sim_crossover_delay.R
sim_crossover_delay
Simulating a trial with crossover effect.
Control and experimental arm are both exponentially distributed,
but control switches treatment after a delay time
1 2 3 | sim_crossover_delay(n_c = 100, n_e = 100, median_c_1 = 10,
median_c_2 = 12.5, median_e = 15, delay = 3, p_change = 1,
end_event = 150, rec_period = 12, rec_power = 1, model = NULL)
|
n_c |
Number of patients in control arm |
n_e |
Number of patients in experimental arm |
median_c_1 |
Median in control arm for the first time period |
median_c_2 |
Median in control arm for the second time period |
median_e |
Median in experimental arm |
delay |
Time at which to change treatment in control |
p_change |
Probability that a patient in control that has a progression changes to experimental arm |
end_event |
Number of events to stop the study |
rec_period |
Recruitment period |
rec_power |
Recruitment follows a power model, this variable how the power looks |
model |
List containing all the variabels above |
dt Data table containing time, event and group/arm
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.