2222# '
2323# ' @returns A list with the first element corresponding to futility and the second for efficacy boundaries
2424# ' @examples
25- # ' \donttest{
2625# ' H0=c(0.15,0.30, 0.15, 0.40)
2726# ' a <- H0
2827# ' seed <- 123
29- # ' n <- c(10, 5, 5, 5, 5, 5, 5 )
28+ # ' n <- c(10, 5, 5)
3029# ' method <- "power"
3130# ' test1<- get_boundary_jointefftox(H0=H0, a=a, n =n,
3231# ' lambda = seq(0, 1, l = 11),
3332# ' gamma = seq(0, 1, l = 11),
3433# ' eta = seq(0, 3, l = 31),
3534# ' method = "power")
36- # ' }
3735# '
3836
3937get_boundary_jointefftox <- function (H0 , a , n , lambda , gamma , eta = NULL , method = " power" , seed = NULL ) {
@@ -279,11 +277,10 @@ get_boundary_jointefftox <- function(H0, a, n, lambda, gamma, eta = NULL, method
279277# ' }
280278# '
281279# ' @examples
282- # ' \donttest{
283280# ' H0=c(0.15,0.30, 0.15, 0.40)
284281# ' a <- H0
285282# ' seed <- 123
286- # ' n <- c(10, 5, 5, 5, 5, 5, 5 )
283+ # ' n <- c(10, 5, 5)
287284# ' method <- "power"
288285# ' boundary_tab<- get_boundary_jointefftox(H0=H0, a=a, n =n,
289286# ' lambda = seq(0, 1, l = 11),
@@ -296,13 +293,12 @@ get_boundary_jointefftox <- function(H0, a, n, lambda, gamma, eta = NULL, method
296293# ' p2 = 0.30,
297294# ' p3 = 0.15,
298295# ' p4 = 0.40,
299- # ' n = c(10, 5, 5, 5, 5, 5, 5 ),
296+ # ' n = c(10, 5, 5),
300297# ' nsim = 1000,
301298# ' fb = boundary_tab$cnf,
302299# ' sb = boundary_tab$cns,
303300# ' seed = seed
304301# ' )
305- # ' }
306302# '
307303get_oc_jointefftox <- function (p1 , p2 , p3 , p4 , n , nsim , fb , sb , seed = NULL ) {
308304 set.seed(seed )
@@ -561,19 +557,17 @@ get_oc_jointefftox <- function(p1, p2, p3, p4, n, nsim, fb, sb, seed = NULL) {
561557# ' \item{gamma: }{gamma values for cut-off probability}
562558# ' \item{eta: }{eta values for cut-off probability}}
563559# ' @examples
564- # ' \donttest{
565560# ' oc_joint<-get_boundary_oc_efftox(
566561# ' H0=c(0.15,0.30, 0.15, 0.40),
567562# ' H1= c(0.18,0.42, 0.02, 0.38),
568- # ' n = c(10, 5, 5, 5, 5, 5, 5 ),
563+ # ' n = c(10, 5, 5),
569564# ' nsim = 1000,
570565# ' lambda = seq(0, 1, l = 11),
571566# ' gamma = seq(0, 1, l = 11),
572567# ' eta = seq(0, 3, l = 31),
573568# ' method = "power",
574569# ' seed = 1
575570# ' )
576- # ' }
577571# '
578572get_boundary_oc_efftox <- function (
579573 H0 , H1 , n , nsim , lambda , gamma , eta = NULL , method = " power" , seed = NULL
@@ -687,11 +681,10 @@ get_boundary_oc_efftox <- function(
687681# ' @export
688682# ' @keywords internal
689683# ' @examples
690- # ' \donttest{
691- # 'test_jointy <- search_optimal_pars_efftox(
684+ # 'test_joint <- search_optimal_pars_efftox(
692685# ' H0=c(0.15,0.30, 0.15, 0.40),
693686# ' H1= c(0.18,0.42, 0.02, 0.38),
694- # ' n = c(10, 5, 5, 5, 5, 5, 5 ),
687+ # ' n = c(10, 5, 5),
695688# ' nsim = 1000,
696689# ' t1e = 0.1,
697690# ' method = "power",
@@ -706,7 +699,6 @@ get_boundary_oc_efftox <- function(
706699# ' grid3 = 31,
707700# ' seed = 123
708701# ')
709- # '}
710702# '
711703search_optimal_pars_efftox <- function (
712704 H0 , H1 , n , nsim , t1e = NULL , method = " power" ,
0 commit comments