rp21: Outcome Probabilities for Randomized Phase II Designs

View source: R/phase2.R

rp21R Documentation

Outcome Probabilities for Randomized Phase II Designs

Description

For a single stage randomized phase II study, computes the probability that the difference in the number of responses is larger than a specified critical value.

Usage

rp21(n, p1, p2, crit = 0)

Arguments

n

Planned number of subjects per arm

p1

Success probability for treatment 1

p2

Success probability for treatment 2

crit

Maximum difference in number of responses that would be viewed as an equivalent outcome

Details

Computations assume two independent binomials R1 and R2, with R1 distributed Binomal(n,p1) and R2 distributed Binomial(n,p2)

Value

A vector giving P(R1>R2+crit), P(|R1-R2|<=crit) and P(R1<R2-crit).

See Also

pickwin

Examples

rp21(32, 0.2, 0.1)


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