Simon_pr {VisualizeSimon2Stage} | R Documentation |
Simon_pr: Probabilities of a Simon's Two-Stage Design
Description
Probability of frail (i.e., early termination), fail (to reject the null) and success (to reject the null) of a Simon's two-stage design, at given true response rate(s).
Usage
Simon_pr(prob, n1, n, r1, r)
Arguments
prob |
|
n1 , n |
positive integer scalars, Stage-1 sample size |
r1 , r |
non-negative integer scalars, number of response
in Stage-1 |
Details
Given the Simon's two-stage design , for a response rate
, we have the number of Stage-1 positive responses
and the number of Stage-2 positive responses
.
Obviously
and
are independent.
The probability of early termination is .
The probability of failure to reject is
The probability of rejecting is
Parameters nomenclature of n1
, n
, r1
and r
follows that of
PASS and function ph2simon.
Value
Simon_pr returns Simon_pr object.
Slots
.Data
ncol-3 double matrix, probability of frail (i.e., early termination), fail (to reject the null) and success (to reject the null), at each response rate
given in
@prob
eN
numeric vector, expected sample size(s)
for each of response rate(s)
prob
Examples
Simon_pr(prob = c(.2, .4), n1 = 15L, r1 = 3L, n = 24L, r = 7L)