Learn R Programming

GroupSeq (version 1.0)

outputDriftWithBounds: console output

Description

This function prints out results from function 'computeAlphaLevel' into the console

Usage

outputDriftWithBounds(n, probTotal, drift, expectedStoppingTime, secondTimeScaleIsUsed, t, t2, t2max, lowerBounds, upperBounds, probStopping, probExceedingUpper, probExceedingLower, confidenceLevel)

Arguments

n
is the number of interim analyses.
probTotal
is the total type I error used.
drift
vector of drift parameters
expectedStoppingTime
is expected stopping time (not implemented).
secondTimeScaleIsUsed
second time/information scale (yes=>secondTimeScaleIsUsed==TRUE, no=>secondTimeScaleIsUsed==FALSE)
t
is the vector of information times.
t2
is the second or information time scale, for covariances
t2max
maximum of t2
lowerBounds
is the vector of lower standardized boundaries
upperBounds
is the vector of upper standardized boundaries
probStopping
is the prob of reaching ith analysis and stopping.
probExceedingUpper
is the prob of reaching ith and exceeding upper.
probExceedingLower
is the prob of reaching ith and exceeding lower.
confidenceLevel
desired power respectively confidence level

See Also

groupseq, print cbind, format, data.frame

Examples

Run this code
## a very simple fictious one:
outputDriftWithBounds(1, 0.05, 1.64485, 0.5, FALSE, 1, 0, 0, -8, 1.6449, 0.05, 0.05, 0.05, 00.5)
## with the following result:

############################ 
#                          # 
# Output Drift with Bounds # 
#                          # 
############################ 
#
#
#*-----* 
#*Drift: 1.6448 
#*-----* 
#Maximum Information: 0 
#Power is  0.5 
#
#
#   Times  Lower Bounds  Upper Bounds  exit Prob  cumulative Exit Prob
#1      1            -8        1.6449        0.1                   0.1

Run the code above in your browser using DataLab