Usage
optgs(delta0 = 0, delta1 = 1/3, J = 2, sigma = 1, sd.known = TRUE, alpha = 0.05, power = 0.9, weights = c(0.95, 0, 0, 0.05), initial = NULL)
Arguments
delta0
mean difference in treatment effect under the null hypothesis (default: 0)
delta1
clinically relevant difference used to power the trial (default: 1/3)
J
number of stages in the trial (default: 2)
sigma
assumed standard deviation of treatment responses (default: 1)
sd.known
logical value indicating if sigma will be treated as known; if FALSE, a quantile substitution method will be used to modify the stopping boundaries (default TRUE)
alpha
one-sided type-I error rate required (default: 0.05)
power
power required (default: 0.9)
weights
vector of length 4 giving the weights put on the four optimality criteria (default: c(0.95,0,0,0.05)). See details for more information
initial
starting values for the Nelder-Mead algorithm if the user wishes to override the default (default: NULL). Initial values must be specified as a two-dimensional vector where both entries are between -0.5 and 0.5.