R/des_ss_bern.R
des_ss_bern.Rd
des_ss_bern()
determines single-stage multi-arm clinical trial designs
assuming the primary outcome variable is Bernoulli distributed. It supports a
variety of multiple comparison corrections, along with the determination of
A-, D-, and E-optimal allocation ratios. In all
instances, des_ss_bern()
computes the required sample size in each
arm, and returns information on key operating characteristics.
des_ss_bern( K = 2, alpha = 0.025, beta = 0.1, pi0 = 0.3, delta1 = 0.2, delta0 = 0, ratio = rep(1, K), correction = "dunnett", power = "marginal", integer = FALSE, ratio_scenario = "HG", summary = FALSE )
K | A |
---|---|
alpha | A |
beta | A |
pi0 | A |
delta1 | A |
delta0 | A |
ratio | Either a |
correction | A |
power | A |
integer | A |
ratio_scenario | Only used if |
summary | A |
A list
of class "multiarm_des_ss_bern"
containing the following elements
A tibble
in the slot $opchar
summarising the
operating characteristics of the identified design.
A numeric
in the slot $N
specifying
N, the trial's total required sample
size.
A numeric
vector in the slot $n
specifying
n, the vector of sample
sizes required in each arm.
A numeric
in the slot $gamma
specifying the
critical threshold for p-values,
γ, below which null
hypotheses would be rejected. Will be NA
if correction
is not a single-step testing procedure.
A numeric
vector in the slot $gammaO
specifying
the critical thresholds for ordered p-values,
γ, to use with
the chosen step-wise testing procedure. Will be NA
if
correction
is not a step-wise testing procedure.
Each of the input variables.
# The design for the default parameters des <- des_ss_bern() # An A-optimal design des_A <- des_ss_bern(ratio = "A") # Using the root-K allocation rule, modifying the desired type of power, and # choosing an alternative multiple comparison correction des_root_K <- des_ss_bern(ratio = rep(1/sqrt(2), 2), correction = "holm_bonferroni", power = "disjunctive")