ldInitLocPeak {gsrsb} | R Documentation |
Find the Location of Maximum, Error Spending Approach
Description
Calculate the location of maximal type I error of secondary endpoint.
Usage
ldInitLocPeak(alpha, tVec, cvec, type = 2, initIntvl = c(0.8, 4))
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. |
Details
This function searches the location of maximal type I error of secondary endpoint by using the error spending approach.
Value
location of maximum, a number between 1 and the number of interims.
Author(s)
Jiangtao Gou
References
Lan, K. K. G., and Demets, D. L. (1983). Discrete sequential boundaries for clinical trials. Biometrika 70, 659-663.
Tamhane, A. C., Gou, J., Jennison, C., Mehta, C. R., and Curto, T. (2018). A gatekeeping procedure to test a primary and a secondary endpoint in a group sequential design with multiple interim looks. Biometrics, 74, 40-48.
See Also
ldSecondaryBoundary
, initLocBeak
Examples
## Not run:
require(mvtnorm)
require(ldbounds)
K <- 6;
tVec <- c(140,328,453,578,659,1080)/1080;
alpha = 0.025;
cvec.obf <- ldbounds::ldBounds(tVec,iuse=c(1),alpha=c(alpha),sides=1);
cvec <- cvec.obf$upper.bounds;
loc <- ldInitLocPeak(alpha,tVec,cvec,type=2,initIntvl=c(0.9,4))
## End(Not run)