twostg: Operating Characteristics of Two-Stage Phase II Designs

View source: R/twostg.R

twostgR Documentation

Operating Characteristics of Two-Stage Phase II Designs

Description

Calculates the operating characteristics of single arm, two-stage phase II designs.

Usage

twostg(n1, n2, p1, r1, r2)

Arguments

n1

Number of cases accrued in the first stage

n2

Number of additional cases accrued in the second stage

p1

Response probability

r1

max number responses in first stage where drug would still be declared ineffective

r2

max number of total responses for drug to be declared ineffective

Details

In the first stage, n1 cases are accrued and the study is stopped if r1 or fewer responses are observed. If more than r1 responses are observed then an additional n2 cases are accrued. The drug or regimen will be declared ineffective if r2 or fewer total responses are observed, and worth further study if more than r2 responses are observed. Subjects are assumed to be independent with a common response probability p1.

Value

twostg returns a list of class twostg, with components

inputs

a vector containing the input values

prob.inactive

a vector giving the total probability of r2 or fewer responses and the probability of r1 or fewer in the first stage

print.twostg prints a summary of the input data and the probability of being declared ineffective overall and at the first stage.

See Also

pickwin, rp21, simon, bin1samp

Examples

twostg(14, 18, 0.1, 1, 4)
twostg(14, 18, 0.3, 1, 4)


raredd/desmon documentation built on May 7, 2024, 3:46 p.m.