optimal_multiarm_generic: Generic function for optimizing multi-arm programs

View source: R/optimal_multiarm_generic.R

optimal_multiarm_genericR Documentation

Generic function for optimizing multi-arm programs

Description

Generic function for optimizing multi-arm programs

Usage

optimal_multiarm_generic(
  n2min,
  n2max,
  stepn2,
  beta,
  alpha,
  c2,
  c3,
  c02,
  c03,
  K,
  N,
  S,
  b1,
  b2,
  b3,
  strategy,
  num_cl
)

Arguments

n2min

minimal total sample size in phase II, must be divisible by 3

n2max

maximal total sample size in phase II, must be divisible by 3

stepn2

stepsize for the optimization over n2, must be divisible by 3

beta

type-II error rate for any pair, i.e. 1 - beta is the (any-pair) power for calculation of the sample size for phase III

alpha

one-sided significance level/family-wise error rate

c2

variable per-patient cost for phase II

c3

variable per-patient cost for phase III

c02

fixed cost for phase II

c03

fixed cost for phase III

K

constraint on the costs of the program, default: Inf, e.g. no constraint

N

constraint on the total expected sample size of the program, default: Inf, e.g. no constraint

S

constraint on the expected probability of a successful program, default: -Inf, e.g. no constraint

b1

expected gain for effect size category "small"

b2

expected gain for effect size category "medium"

b3

expected gain for effect size category "large"

strategy

choose strategy: 1 (only the best promising candidate), 2 (all promising candidates) or 3 (both strategies)

num_cl

number of clusters used for parallel computing, default: 1


Sterniii3/drugdevelopR documentation built on Jan. 26, 2024, 6:17 a.m.