Description Usage Arguments Details Value Author(s) References See Also Examples
Finds, for Simon-like designs, the value of response probability that would yield a given p-value.
1 | pquantile(s, n1, r1, n, p0, pvalue)
|
s |
Total number of successes. |
n1 |
Stage 1 sample size. |
r1 |
Stage 1 critical value (trial is stopped at stage 1 if the number of successes
is at most |
n |
Total sample size. |
p0 |
Response rate under the null hypothesis. |
pvalue |
The desired p-value. |
The solution is found using numerical search, with a precision of 0.000001. The p-value is as defined by Koyama and Chen (2008).
Response probability.
Arsenio Nhacolo
Koyama, T. and Chen, H. Proper inference from Simon's two-stage designs. Stat Med, 2008, 27, 3145-3154.
1 | pquantile(21, 19, 4, 54, 0.2, 0.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.