Generic function for optimizing normally distributed endpoints
optimal_normal_generic(
w,
Delta1,
Delta2,
in1,
in2,
a,
b,
n2min,
n2max,
stepn2,
kappamin,
kappamax,
stepkappa,
alpha,
beta,
c2,
c3,
c02,
c03,
K = Inf,
N = Inf,
S = -Inf,
steps1 = 0,
stepm1 = 0.5,
stepl1 = 0.8,
b1,
b2,
b3,
gamma = 0,
fixed = FALSE,
num_cl = 1
)
weight for mixture prior distribution
assumed true prior treatment effect measured as the standardized difference in means, see here for details
assumed true prior treatment effect measured as the standardized difference in means, see here for details
amount of information for Delta1
in terms of sample size, see
here
for details
amount of information for Delta2
in terms of sample size, see
here
for details
lower boundary for the truncation of the prior distribution
upper boundary for the truncation of the prior distribution
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 kappa for the go/no-go decision rule
maximal threshold value kappa for the go/no-go decision rule
step size for the optimization over the threshold value kappa
one-sided significance level
type II error rate; i.e. 1 - beta
is the power for calculation of the sample size 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", default: 0
lower boundary for effect size category "medium" = upper boundary for effect size category "small" default: 0.5
lower boundary for effect size category "large" = upper boundary for effect size category "medium", default: 0.8
expected gain for effect size category "small" in 10^5 $
expected gain for effect size category "medium" in 10^5 $
expected gain for effect size category "large" in 10^5 $
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 following a prior distribution, if TRUE Delta1
is used as fixed effect
number of clusters used for parallel computing, default: 1