adj.two: Zhong's 2-/3- stage Phase II design

Description Usage Arguments Details Value Author(s) Examples

View source: R/adj.two.R

Description

adjust Zhong's 2-/3-stage design for over-/under-running

Usage

1
adj.two(n1, r1, s1, n2, alpha1, alpha2, beta, pc, pe, ...)

Arguments

n1

sample size at stage 1.

r1

inefficacy boundary at stage 1.

s1

efficacy boundary at stage 1. if no early stopping for efficacy, s1 should equal to n1.

n2

sample size at stage 2.

alpha1

left-side overall type I error.

alpha2

right-side overall type I error.

beta

type II error.

pc

a numeric vector of response rate. should be a vector with length 1 or 2.

pe

alternative hypothesis.

...

not used argument.

Details

To be added

Value

An object of class "opt.design" is a list containing:

bdry

rejection regions

error

true type 1/2 errors

n

sample size at each stage

complete

complete list of feasible designs

alpha1

input; left-side type 1 error

alpha2

input; right-side type 1 error

beta

input; type 2 error

pc

input; a vector of response rate.

pe

input; a vector of alternative response rate

sf

input; the alpha-spending function used

stage

input; two- or three- stage design is used

Author(s)

Wenchuan Guo <wguo1017@gmail.com>, Jianan Hui <jiananhuistat@gmail.com>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
 n1 <- 22
 r1 <- 6
 s1 <- 22
 n2 <- 24
 pc <- 0.4
 pe <- pc + 0.15
 alpha1 <- 0.3
 alpha2 <- 0.1
 beta <- 0.2
 out <- adj.two(n1, r1, s1, n2, alpha1, alpha2, beta, pc, pe)

tsdf documentation built on July 1, 2020, 6:18 p.m.