View source: R/sample.space.SM.R
sample.space.SM | R Documentation |
Creates all possible samples from a multi-stage group sequential trial for K>=2 by calling sample.space or sample.space.2.
sample.space.SM(n,a,b)
n |
Design vector of planned sample sizes |
a |
Design vector of lower futility boundaries |
b |
Design vector of upper superiority boundaries |
list with components
M |
number of trials for each possible trial outcome |
S |
number of responses for each possible trial outcome |
N |
number of patients for each possible trial outcome |
count |
combinatoric multiplier for probability distribution |
subcountM |
combinatoric components for probability distribution |
decision |
test decision for each possible trial outcome |
design |
list giving design vectors |
Chris J. Lloyd
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
# Example 1 in table 1 of Lloyd (2020) n=c(5,6,5,9) a=c(2,4,5,12) b=c(5,9,11,13) sample.space.SM(n,a,b) # Object describing all 26 possible outcomes for (s,m).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.