View source: R/sim_noninferiority_alt.R
run_a_noninf_trial_alt | R Documentation |
As sim_noninferiority.R, except rather than stopping for superiority by delta, always base superiority on prob(max).
run_a_noninf_trial_alt(
id,
mu,
delta_sup = 0.1,
delta_ctr = 0,
delta_noninf = 0.1,
delta_pair = 0,
kappa_act_0 = 0.01,
kappa_act_1 = 0.05,
kappa_act_r = 0.5,
kappa_sup_0 = 0.95,
kappa_sup_1 = 0.8,
kappa_sup_r = 0.5,
kappa_ctr_0 = 0.95,
kappa_ctr_1 = 0.95,
kappa_ctr_r = 0.5,
kappa_noninf_0 = 0.6,
kappa_noninf_1 = 0.6,
kappa_noninf_r = 0.5,
kappa_nonsup_0 = 0.1,
kappa_nonsup_1 = 0.1,
kappa_nonsup_r = 0.5,
brar = TRUE,
active_pmax = TRUE,
allocate_inactive = FALSE,
return_all = FALSE,
ind_comp_ctrl = FALSE,
ctrl_alloc = 1/13,
Nseq = seq(500, 10000, length.out = 20)
)
id |
The trial ID |
mu |
The true mean, must be length 13 |
delta_sup |
The superiority margin |
delta_ctr |
The superiority margin for control comparisons |
delta_noninf |
The noninferiority margin |
delta_pair |
The margin for pairwise comparisons |
kappa_act_0 |
The starting threshold to deactivate poor arms |
kappa_act_1 |
The final threshold to deactivate poor arms |
kappa_sup_0 |
The starting threshold for superiority |
kappa_sup_1 |
The final threshold for superiority |
kappa_ctr_0 |
The starting threshold for beating control |
kappa_ctr_1 |
THe final threshold for beating control |
kappa_noninf_0 |
The starting threshold for non-inferiority |
kappa_noninf_1 |
The final threshold for non-inferiority |
kappa_nonsup_0 |
The starting threshold for non-superiority |
kappa_nonsup_1 |
The final threshold for non-superiority |
brar |
Use Response Adaptive Randomisation? |
allocate_inactive |
Continue to allocate subjects to arms meeting the inactive threshold? |
return_all |
Return all value, or only those from final analysis? |
ind_comp_ctrl |
Should deactivation be based on independent P(max trt arms) and P(beat ctrl) or just global P(max all arms) |
A list of trial quantities
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.