initLocPeak: Find the Location of Maximum, Standard OBF and POC

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/refinedBoundaries.R

Description

Calculate the location of maximal tyep I error of the standard O'Brien-Fleming and Pocock refined secondary boundaries.

Usage

1
2
initLocPeak(alpha, tVec, cvec, type = 2, initIntvl = c(1, 4),
  initNrep = 10)

Arguments

alpha

type I error.

tVec

information vector.

cvec

primary group sequential boundary.

type

type of the test procedure for the secondary endpoint. O'Brien- Fleming (OBF) type error spending funciton is 1, Pocock (POC) type error spending funciton is 2.

initIntvl

computing paramter, a pair of numbers containing the end-points of the interval to be searched for the root.

initNrep

computing paramter, number of replica.

Details

This function search the location of the maximal point, in order to calculate the standard (origiinal) O'Brien-Fleming (OBF) and Pocock (POC) refined secondary boundaries.

Value

location of maximum, a number between 1 and the number of interims

Author(s)

Jiangtao Gou

References

O'Brien, P. C., and Fleming, T. R. (1979). A multiple testing procedure for clinical trials. Biometrics 35, 549-556.

Pocock, S. J. (1977). Group sequential methods in the design and analysis of clinical trials. Biometrika 64, 191-199.

Tamhane, A. C., Gou, J., Jennison, C., Mehta, C. R., and Curto, T. (2017+). A gatekeeping procedure to test a primary and a secondary endpoint in a group sequential design with multiple interim looks. Biometrics, to appear.

See Also

SecondaryBoundary, ldInitLocBeak

Examples

1
2
3
4
5
6
7
8
9
#require(mvtnorm)
#K <- 8
#gammaVec <- sqrt((1:K)/K)
#tVec <- gammaVec^2
#alpha = 0.025
#c <- 2.072274
#cvec <- c/gammaVec
#loc <- initLocPeak(alpha,tVec,cvec,type=2,initIntvl=c(1,3),
#      initNrep=1)

gsrsb documentation built on May 29, 2017, 7:12 p.m.