adj.two: Adjust Zhong's two-stage Phase II design

View source: R/adj.two.R

adj.twoR Documentation

Adjust Zhong's two-stage Phase II design

Description

Adjust Zhong's two-stage design for over-running or under-running.

Usage

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 there is no early stopping for efficacy, s1 should equal 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 rates. It should have length 1 or 2.

pe

Alternative hypothesis response rate.

...

Unused arguments.

Details

This function enumerates feasible second-stage boundaries after the first-stage sample size and boundaries have been fixed.

Value

An object of class "opt.design", returned as a list containing:

bdry

The rejection boundaries.

error

The true type I and type II errors.

n

The sample size at each stage.

complete

The complete list of feasible designs.

alpha1

The input left-side type I error.

alpha2

The input right-side type I error.

beta

The input type II error.

pc

The input response-rate vector.

pe

The input alternative response rate.

stage

The number of stages in the selected design.

Author(s)

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

Examples

 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 April 26, 2026, 1:06 a.m.