Last data update: 2014.03.03

R: coditional power of a GSD
cpR Documentation

coditional power of a GSD

Description

cp is a function that computes the conditional power of a GSD.

Usage

cp(GSD)

Arguments

GSD

object of the class GSTobj or list with the following elements: K = number of stages, a = vector with futility boundaries (not supported yet), b = rejection boundaries, t = vector with information fractions, Imax = maximum information number, delta = effect size used for planning the trial; see example blow.

Value

cp returns the conditional power of a GSD.

Author(s)

Niklas Hack niklas.hack@meduniwien.ac.at and Werner Brannath werner.brannath@meduniwien.ac.at

References

O'Brien, PC, Fleming, TR (1979) ”A multiple testing procedure for clinical trials”, Biometrics, 35 , 549-556
Schoenfeld, D (2001) ”A simple Algorithm for Designing Group Sequential Clinical Trials”, Biometrics, 27, 972-974

See Also

GSTobj

Examples

##The following calculates the conditional power of a GSD.
GSD <- list(K=4,a=rep(-8,4),b=c(4.333,2.963,2.359,2.014),t=c(0.25,0.5,0.75,1),Imax=0.22,delta=4)
cp(GSD)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(AGSDest)
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/AGSDest/cp.Rd_%03d_medium.png", width=480, height=480)
> ### Name: cp
> ### Title: coditional power of a GSD
> ### Aliases: cp
> ### Keywords: methods
> 
> ### ** Examples
> 
> ##The following calculates the conditional power of a GSD.
> GSD <- list(K=4,a=rep(-8,4),b=c(4.333,2.963,2.359,2.014),t=c(0.25,0.5,0.75,1),Imax=0.22,delta=4)
> cp(GSD)
[1] 0.4581139
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>