sargent2stage_prob_reject_Ha.RdThis function calculates the P(reject alternative hypothesis|true success probability)
sargent2stage_prob_reject_Ha(n1, n2, r1, r2, p)| n1 | total number of patients in stage1 |
|---|---|
| n2 | total number of patients in stage2 |
| r1 | critical value for the first stage |
| r2 | critical value for the second stage |
| p | true success probability |
Probability
if x1<=r1 --> stop futility
if (x1+x2)<=r --> futility
with x1 the number of successes in the first stage and x2 the number of successes in the second stage
Sargent DJ, Chan V, Goldberg RM. A three-outcome design for phase II clinical trials. Control Clin Trials. 2001;22(2):117-125. doi:10.1016/s0197-2456(00)00115-x
sargent2stage_prob_reject_Ha(n1=10,n2=20,r1=0,r2=4,p=0.25)
#> [1] 0.1308219