Last data update: 2014.03.03

R: as Adaptive Group Sequential Trial
as.AGSTR Documentation

as Adaptive Group Sequential Trial

Description

Function as.AGST builds an adaptive group sequential trial object

Usage

as.AGST(pT, iD, sT, sTo = NULL)

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)

sT

object of the class GSTobj; secondary trial design

sTo

secondary trial outcome; a list with the variables T and z; list(T = stage where trial stops, z = z-statistic at stage where trial stops)

Value

Returns a list containing the pT, iD, sT and sTo with class=AGSTobj

Author(s)

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

See Also

AGSTobj

Examples

pT=plan.GST(K=3,SF=4,phi=-4,alpha=0.05,delta=6,pow=0.9,compute.alab=TRUE,compute.als=TRUE)
iD=list(T=1, z=1.090728)
swImax=0.0625
I2min=3*swImax
I2max=3*swImax

sT=adapt(pT=pT,iD=iD,SF=1,phi=0,cp=0.8,theta=5,I2min,I2max,swImax)
sTo=list(T=2, z=2.393)
AGST <- as.AGST(pT=pT,iD=iD,sT=sT,sTo=sTo)

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/as.AGST.Rd_%03d_medium.png", width=480, height=480)
> ### Name: as.AGST
> ### Title: as Adaptive Group Sequential Trial
> ### Aliases: as.AGST
> ### Keywords: methods
> 
> ### ** Examples
> 
> pT=plan.GST(K=3,SF=4,phi=-4,alpha=0.05,delta=6,pow=0.9,compute.alab=TRUE,compute.als=TRUE)
> iD=list(T=1, z=1.090728)
> swImax=0.0625
> I2min=3*swImax
> I2max=3*swImax
> 
> sT=adapt(pT=pT,iD=iD,SF=1,phi=0,cp=0.8,theta=5,I2min,I2max,swImax)
> sTo=list(T=2, z=2.393)
> AGST <- as.AGST(pT=pT,iD=iD,sT=sT,sTo=sTo)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>