calculateTask2 {GroupSeq}R Documentation

computes drift given power and bounds

Description

This function computes drift given power and bounds

Usage

calculateTask2(n, nMax, t, t2, t2max, t3, confidenceLevel, 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
t2max maximum of t2
t3 is t2 divided by the maximum information, if needed.
confidenceLevel desired power respectively confidence level
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

Note

This function is meant to be called in context of using groupseq

Author(s)

Roman Pahl

See Also

groupseq, calculateTask1 calculateTask3, calculateTask4

Examples

## function is called within gui - so example is senseless

[Package GroupSeq version 1.0 Index]