View source: R/sim_firstpastpost.R
run_a_firstpastpost_trial | R Documentation |
Run a single trial using where stopping occurs as soon as one arm is superior to control.
run_a_firstpastpost_trial(
id,
mu,
delta,
kappa_lo_0 = 0.1,
kappa_lo_1 = 0.1,
kappa_hi_0 = 0.95,
kappa_hi_1 = 0.95,
brar = FALSE,
allocate_inactive = FALSE,
return_all = FALSE
)
id |
The trial ID |
mu |
The true mean, must be length 13 |
delta |
The superiority margin |
kappa_lo_0 |
The starting threshold to deactivate poor arms |
kappa_lo_1 |
The final threshold to deactivate poor arms |
kappa_hi_0 |
The starting threshold for superiority |
kappa_hi_1 |
The final threshold for 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? |
A list of trial quantities
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.