sample.space.2 {CLAST} | R Documentation |
Sample space enumeration (K=2)
Description
Creates all possible samples from a multi-stage group sequential trial with K=2. If K>2, use the function sample.space instead.
Usage
sample.space.2(n, a, b)
Arguments
n |
Design vector of planned sample sizes |
a |
Design vector of lower futility boundaries |
b |
Design vector of upper superiority boundaries |
Value
list with components $Y, $M, $S, $decision and $design
Author(s)
Chris J. Lloyd
References
Lloyd, C.J. (2020) Exact confidence limits after a group sequential single arm binary trial. Statistics in Medicine, Volume 38, 2389-2399. doi: 10.1002/sim.8909
Examples
n=c(5,6)
a=c(2,6)
b=c(5,7)
# There are 18 possible outcomes from this design which are
# listed in a natural systematic order by function sample.space.
all.samples=sample.space.2(n,a,b)
attributes(all.samples)
# Y contains the 18 possible sequential binary outcomes;
# M contains how many stages before the decision;
# S contains the total number of success that produces the decision;
# decision the final binary test result of H0 or H1.
[Package CLAST version 1.0.1 Index]