pickwin | R Documentation |
Calculate sample size of Simon's pick winner design or determine the probability of alternative hypothesis to obtain target power.
pickwin(
n = NULL,
k = 2L,
p0 = NULL,
p1 = NULL,
power = NULL,
tol = .Machine$double.eps^0.25
)
n |
sample size per arm |
k |
number of arms |
p0 , p1 |
null and alternative response rates, respectively |
power |
probability of choosing the winning arm |
tol |
the desired accuracy (convergence tolerance); see
|
These calculations use method proposed by R. Simon for pick-the-winner design for randomized phase II clinical trials.
Exactly one of the parameters n
, power
, and p1
must
be NULL
.
This design is not a hypothesis test, nor is there a formal comparison between arms. Therefore, the type I error rate does not apply.
An object of class power.htest
with the following elements:
n |
sample size per arm |
arm |
number of arms |
n.total |
total sample size for the study |
Adapted from power.ctepd::n.pick.winner
, Bingshu E. Chen
Simon, R., R.E. Wittes, S.S. Ellenberg. Randomized phase II clinical trials. Cancer Treat Rep. 69:1375-1381, 1985.
power.ctepd::n.pick.winner
; pselect
;
pickwin
;
pickwin(20, 2, 0.25, 0.5)
pickwin(NULL, 2, 0.25, 0.5, 0.95)
pickwin(20, 3, 0.25, 0.5)$power
pickwin(20, 4, 0.25, 0.5)$power
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.