View source: R/simulate_trial_model2.R
simulate_preference_trial | R Documentation |
Simulate trial accounting for preference
simulate_preference_trial( dat = generate_preference_data(), n_seq = c(100, 150, 200, 250, nrow(dat$y)), alloc = matrix(1/ncol(dat$y), length(dat$p), ncol(dat$y)), sup_eps = 0.95, eff_eps = 0.95, brar = FALSE, min_decision = 20, ... )
dat |
Data generated from 'generate_preference_data' |
n_seq |
Sequence of interim analyses |
alloc |
Initial allocation probabilities (matrix) |
brar |
Use BRAR? |
min_decision |
The minimum sample size in a subgroup to make decision/switch on BRAR |
... |
Other arguments to 'vb_lm' functions |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.