Learn R Programming

AGSDest (version 2.3.4)

as.GST: as Group Sequential Trial

Description

Function as.GST builds a group sequential trial object

Usage

as.GST(GSD, GSDo)

Arguments

GSD

object of the class GSTobj; group sequential design

GSDo

group sequential design 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 GSD and GSDo with class=GSTobj

See Also

GSTobj

Examples

Run this code
# NOT RUN {
GSD <- plan.GST(K=4,SF=1,phi=0,alpha=0.025,delta=6,pow=0.8,compute.alab=TRUE,compute.als=TRUE)
GSDo <- list(T=2, z=3.1)
GST <- as.GST(GSD=GSD,GSDo=GSDo)
GST
# }

Run the code above in your browser using DataLab