View source: R/sim_automatic.R
run_automatic_trial | R Documentation |
Run automatic trial simulation
run_automatic_trial(
mu,
Xdes = 1,
mu0 = c(qlogis(0.8), rep(0, 12)),
Sigma0 = diag(c(2^2, rep(1, 12))),
n_seq = seq(500, 10000, 500),
delta_sup = log(1.1),
thres_sup = function(t) 0.8,
thres_inf = function(t) 1 - thres_sup(t),
thres_fut = 0.95,
thres_nin = 0.9,
thres_eff = function(t) 0.99,
thres_hrm = function(t) 0.01,
thres_equ = 0.9,
thres_ina = function(t) 0.99,
thres_ctr = function(t) 0.99,
use_mwu = TRUE,
mc_draws = 10000,
rar_scale = 0.5,
rar_min = 0.05/12,
rar_rule = 1,
drop_rule = 1,
stop_rule = 1,
ct_alloc = sqrt(12)/(12 + sqrt(12)),
drop_perm = TRUE,
enable_stopping = FALSE,
return_all = TRUE,
gen_prior = FALSE,
use_info_n = TRUE
)
mu |
The true response rate in each arm |
n_seq |
The interim sequence |
delta_sup |
The reference value for meaningful difference |
thres_sup |
Threshold for superiority |
thres_inf |
Threshold for inferiority |
thres_fut |
Threshold for futility |
thres_nin |
Threshold for non-inferiority |
thres_eff |
Threshold for effectiveness |
thres_equ |
Threshold for equality |
thres_ina |
Threshold for inadequacy |
use_mwu |
Use mass-weighted-urn randomisation |
mc_draws |
Number of Monte Carlo draws for posterior quantity calculation |
rar_scale |
Scaling factor for RAR |
rar_rule |
Which RAR rule to use |
drop_rule |
Which rule to use for dropping control |
ct_alloc |
What fixed allocation to control |
drop_perm |
Permanently drop interventions? |
enable_stopping |
Apply stopping rule or let trial run its course to max SS? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.