Usage
calculateTask3(n, nMax, t, t2, t2max, t3, drift, equallySpacedTimesInput, secondTimeScaleIsUsed, BoundsSymmetry, alpha, phi, usedFunction, TruncateBoundsInput, enterBoundsManually, upperBounds, lowerBounds)
Arguments
n
is the number of interim analyses
nMax
maximum number of interim analysis (here: limited to 25)
t
is the vector of analysis times on (0,1] scale
t2
is the second or information time scale, for covariances
t3
t2 divided by the maximum information, if needed
drift
vector of drift parameters
equallySpacedTimesInput
variable denoting whether equally spaced times (equallySpacedTimes==TRUE) or different spaced (equallySpacedTimes==FALSE)
secondTimeScaleIsUsed
second time/information scale (yes=>secondTimeScaleIsUsed==TRUE, no=>secondTimeScaleIsUsed==FALSE)
BoundsSymmetry
BoundsSymmetry==1 means one-sided bounds, BoundsSymmetry==2 means two-sided symmetric and BoundsSymmetry==3 means asymmetric bounds.
alpha
is the desired overall size.
phi
optional Parameter referring to Power Family
usedFunction
indicates type I error spending rate function e.g. the function(s) the user choosed
TruncateBoundsInput
is Truncation Point for bounds (default is no truncation)
enterBoundsManually
denotes whether bounds are entered by user or have to be computed by spending function
upperBounds
vector of upper bounds
lowerBounds
vector of lower bounds