rp21 | R Documentation |
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.
rp21(n, p1, p2, crit = 0)
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 |
Computations assume two independent binomials R1 and R2, with R1 distributed Binomal(n,p1) and R2 distributed Binomial(n,p2)
A vector giving P(R1>R2+crit), P(|R1-R2|<=crit) and P(R1<R2-crit).
pickwin
rp21(32, 0.2, 0.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.