Random generator based on Simon's two-stage design.
r_simon(R, prob, object, ...)# S3 method for ph2simon
r_simon(R, prob, object, ...)
# S3 method for ph2simon4
r_simon(
R,
prob,
object,
...,
r1 = object@r1,
n1 = object@n1,
r = object@r,
n = object@n
)
Function r_simon()
returns an integer
vector of length \(R\), which are the \(R\) copies of the number of responses in the Simon's two-stage design.
Function r_simon()
generates \(R\) copies of the number of responses \(y\) in one Simon's two-stage design.
The conclusion of the trials are,
indicates early termination
indicates failure to reject \(H_0\)
indicates success to reject \(H_0\)
Here \(r\) is not needed to generate the random number of responses \(y\).
Instead, \(r\) is needed to determine if the trial is a failure or a success.
Therefore, \(r\) is not a parameter of function r_simon()
.