outputBounds {GroupSeq}R Documentation

console output

Description

This function prints out bounds into the console computed by a spending function

Usage

outputBounds(n, alpha, t, lowerBounds, upperBounds, probDifference, probExit, symmetricBoundsYesNo, spendingFunctionUsed)

Arguments

n is the number of interim analyses.
alpha is the total type I error.
t is the information times.
lowerBounds the vector of lower standardized boundaries
upperBounds the vector of upper standardized boundaries
probDifference probExit(i)-probExit(i-1)
probExit ~vector of exit probabilities
symmetricBoundsYesNo symmetricBoundsYesNo==1 means one-sided bounds, symmetricBoundsYesNo!=1 means two-sided bounds.
spendingFunctionUsed indicates type I error spending rate function e.g. the function(s) the user choosed

Note

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

Author(s)

Roman Pahl

See Also

groupseq, print cbind, format, data.frame

Examples

## a very simple fictious one:
outputBounds(1, 0.05, 1, -1, 1, 0.02, 0.05,TRUE , 1)
## with following result:

# ################################# 
# #                               # 
# # Output of the computed Bounds # 
# #                               # 
# ################################# 
# 
# 
# number of interim analyses = 1 
# alpha = 0.05 
# O'Brien-Fleming Type was used as spending Function. 
#  
#       *Times*  *Lower Bounds*  *Upper Bounds*  *alpha[i]-alpha[i-1]*  *cumulative alpha*
# 1        1              -1               1                   0.02                0.05


[Package GroupSeq version 1.0 Index]