Description Usage Arguments Value
View source: R/sim_exp_crossover.R
sim_exp_crossover
Simulating a trial with crossover effect.
Control and experimental arm are both exponentially distributed,
but control can have progression and might change to experimental arm
1 2 3 | sim_exp_crossover(n_c = 100, n_e = 100, median_c = 10, median_e = 15,
median_progression = 5, p_change = 0.5, 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 |
Median in control arm |
median_e |
Median in experimental arm |
median_progression |
Median for getting a progression in control arm |
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.