Generic function for optimizing programs with binary endpoints
optimal_binary_generic(
w,
p0,
p11,
p12,
in1,
in2,
n2min,
n2max,
stepn2,
rrgomin,
rrgomax,
steprrgo,
alpha,
beta,
c2,
c3,
c02,
c03,
K = Inf,
N = Inf,
S = -Inf,
steps1 = 1,
stepm1 = 0.95,
stepl1 = 0.85,
b1,
b2,
b3,
gamma = 0,
fixed = FALSE,
num_cl = 1
)
weight for mixture prior distribution
assumed true rate of control group, see here for details
assumed true rate of treatment group, see here for details
assumed true rate of treatment group, see here for details
amount of information for p11
in terms of sample size, see
here
for details
amount of information for p12
in terms of sample size, see
here
for details
minimal total sample size for phase II; must be an even number
maximal total sample size for phase II, must be an even number
step size for the optimization over n2; must be an even number
minimal threshold value for the go/no-go decision rule
maximal threshold value for the go/no-go decision rule
step size for the optimization over RRgo
one-sided significance level
type II error rate; i.e. 1 - beta
is the power for calculation of the number of events for phase III
variable per-patient cost for phase II in 10^5 $
variable per-patient cost for phase III in 10^5 $
fixed cost for phase II in 10^5 $
fixed cost for phase III in 10^5 $
constraint on the costs of the program, default: Inf, e.g. no constraint
constraint on the total expected sample size of the program, default: Inf, e.g. no constraint
constraint on the expected probability of a successful program, default: -Inf, e.g. no constraint
lower boundary for effect size category "small" in RR scale, default: 1
lower boundary for effect size category "medium" in RR scale = upper boundary for effect size category "small" in RR scale, default: 0.95
lower boundary for effect size category "large" in RR scale = upper boundary for effect size category "medium" in RR scale, default: 0.85
expected gain for effect size category "small"
expected gain for effect size category "medium"
expected gain for effect size category "large"
to model different populations in phase II and III choose gamma != 0
, default: 0, see
here
for details
choose if true treatment effects are fixed or random, if TRUE p11 is used as fixed effect for p1
number of clusters used for parallel computing, default: 1