plot.sample.space.SM: Sample space for given sequential design.

plt.sample.space.SMR Documentation

Sample space for given sequential design.

Description

Plots decision function in S-M space with boundary vectors "a" and "b". If p0 and p1 are provided then the type 1 and type 2 error are displayed in the main graphic title

Usage

plt.sample.space.SM(n, a, b, p0 = NULL, p1 = NULL)

Arguments

n

Design vector of sample sizes

a

Design vector of lower boundaries

b

Design vector of upper boundaries

p0

Lower benchnmark for success probability

p1

Upper benchnmark for success probability

Value

NULL

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

# Figure 1 of Lloyd (2020)
  n=c(5,6,5,9)
  a=c(2,4,5,12)
  b=c(5,9,11,13)
  plt.sample.space.SM(n,a,b)
# produces plots in Figure 1 or reference.

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