Last data update: 2014.03.03

R: Conditional type I error rate (also called conditional...
cerR Documentation

Conditional type I error rate (also called conditional rejection probability)

Description

Calculates the conditional type I error rate of a GSD

Usage

cer(pT, iD)

Arguments

pT

object of the class GSTobj; primary trial design

iD

interim data; a list with the variables T and z; list(T = stage of interim analysis, z = interim z-statistic)

Value

cer conditional type I error rate

Author(s)

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

References

Mueller, HH, Schaefer, H (2001) ”Adaptive group sequential design for clinical trials: Combining the advantages of adaptive and of classical group sequential approaches”, Biometrics, 57, 886-891.

See Also

plan.GST

Examples

##The following calculates the conditional type I error rate
##under the null hypotesis after an adaptation at the second stage
##of the primary trial.
pT=plan.GST(K=4,SF=1,phi=0,alpha=0.025,delta=6,pow=0.8,compute.alab=TRUE,compute.als=TRUE)
cer(pT=pT,iD=list(T=2, z=1.09))

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/cer.Rd_%03d_medium.png", width=480, height=480)
> ### Name: cer
> ### Title: Conditional type I error rate (also called conditional rejection
> ###   probability)
> ### Aliases: cer
> ### Keywords: methods
> 
> ### ** Examples
> 
> ##The following calculates the conditional type I error rate
> ##under the null hypotesis after an adaptation at the second stage
> ##of the primary trial.
> pT=plan.GST(K=4,SF=1,phi=0,alpha=0.025,delta=6,pow=0.8,compute.alab=TRUE,compute.als=TRUE)
> cer(pT=pT,iD=list(T=2, z=1.09))
[1] 0.0413208
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>