simulate_trial_with_control2 | R Documentation |
Simulate a trial with fixed allocation to control group
simulate_trial_with_control2( n_seq = c(100, 200, 300, 400), dat = simulate_continuous_outcome(nsubj = max(n_seq)), eff_eps = function(FI) 0.98, sup_eps = function(FI) 0.98, fut_eps = function(FI) 0.98, delta = 2, alloc = rep(1/4, 4), prior = c(int_prior_mean = 40, int_prior_sd = 5, b_prior_sd = 5, a0 = 3, b0 = 5), brar = 2, brar_k = 0.5, allow_stopping = TRUE, make_dt = TRUE, ctr = contr.treatment, .. )
n_seq |
The sequence of analyses by number of subjects with 12 week observation |
dat |
The dataset for this particular simulation |
eff_eps |
Effective decision threshold (relative to control) as function of fraction of information |
sup_eps |
Superiority decision threshold (relative to active treatments) as function of fraction of information |
fut_eps |
Futility threshold as a function of fraction of trial information. |
delta |
Futility reference value |
alloc |
Initial allocation ratio |
brar |
Update allocation ratio using BRAR |
A list (or data.table) giving the trial results
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.