Learn R Programming

GroupSeq (version 1.0)

outputBounds: 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

See Also

groupseq, print cbind, format, data.frame

Examples

Run this code
## 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

Run the code above in your browser using DataLab