sample.space.SM: Sample space enumeration

View source: R/sample.space.SM.R

sample.space.SMR Documentation

Sample space enumeration

Description

Creates all possible samples from a multi-stage group sequential trial for K>=2 by calling sample.space or sample.space.2.

Usage

sample.space.SM(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

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

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

# 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).

CLAST documentation built on April 8, 2022, 9:06 a.m.