Description Usage Arguments Examples
make.ss.bin.ppp: Make Single Sample Binary Prior/Posterior Plot. Returns a ggplot object.
make.ss.bin.spp: Make Single Sample Binary Shaded Posterior Plot. Returns a graphic built using grid.arrange.
get.ss.bin.trt.oc.df: Get Single Sample Binary Treatment Effect OC. Returns a data.frame.
make.ss.bin.trt.oc1: Make Single Sample Binary Treatment Effect. Returns a graphic built using grid.arrange.
make.ss.bin.trt.oc2: Make Single Sample Binary Treatment Effect. Returns a graphic built using grid.arrange.
get.ss.bin.ssize.oc.df: Get Single Sample Binary sample size OC data.frame. Returns a data.frame.
make.ss.bin.ssize.oc: Make Single Sample Binary Sample size OC plot
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | make.ss.bin.ppp(a.trt = 1, b.trt = 1, n.trt = 40, x.trt = 20)
make.ss.bin.spp(
a.trt = 1,
b.trt = 1,
n.trt = 40,
x.trt = 9,
Delta.lrv = 0.2,
Delta.tv = 0.35,
tau.tv = 0.1,
tau.lrv = 0.8,
tau.ng = 0.65,
seed = 1234,
nlines = 25,
tsize = 4,
nlines.ria = 20
)
get.ss.bin.trt.oc.df(
a.trt = 1,
b.trt = 1,
n.trt = 40,
Delta.tv = 0.35,
Delta.lrv = 0.2,
Delta.OC.LB = 0,
Delta.OC.UB = 0.5,
tau.tv = 0.1,
tau.lrv = 0.8,
tau.ng = 0.65
)
make.ss.bin.trt.oc1(
my.df = get.ss.bin.trt.oc.df(),
tsize = 4,
nlines = 25,
nlines.ria = 20,
Delta_OC_LB = 0,
Delta_OC_UB = 0.41
)
make.ss.bin.trt.oc2(
my.df = get.ss.bin.trt.oc.df(),
tsize = 4,
nlines = 25,
nlines.ria = 20,
ud.low = 0,
ud.upp = 1
)
get.ss.bin.df(
a.trt = seq(0.5, 1, 0.5),
b.trt = seq(0.5, 1, 0.5),
beta.mean = seq(0.3, 0.7, 0.01),
eff.ss = 1:40,
x.trt = 0:80,
n.trt = c(40:80),
Delta.tv = 0.4,
Delta.lrv = 0.3,
tau.tv = 0.1,
tau.lrv = 0.8,
tau.ng = 0.65,
rp = FALSE
)
get.ss.bin.ssize.oc.df(
a.trt = 1,
b.trt = 1,
n.trt = 40,
Delta.lrv = 0.35,
Delta.tv = 0.35,
Delta.user = 0.4,
tau.tv = 0.1,
tau.lrv = 0.8,
tau.ng = 0.65,
ulow = 20,
uupp = 60
)
make.ss.bin.ssize.oc(
for.plot = get.ss.bin.ssize.oc.df(),
nlines = 25,
tsize = 4
)
|
a.trt |
prior alpha parameter |
b.trt |
prior beta parameter |
n.trt |
observed sample size |
x.trt |
observed number of responders |
Delta.lrv |
TPP Lower Reference Value aka Min TPP |
Delta.tv |
TPP Target Value aka Base TPP |
tau.tv |
threshold associated with Base TPP |
tau.lrv |
threshold associated with Min TPP |
tau.ng |
threshold associated with No-Go |
seed |
random seed |
nlines |
Control for text spacing |
tsize |
Control for text size |
nlines.ria |
Control for text spacing |
my.df |
data.frame returned by get.ss.bin.trt.oc.df |
Delta_OC_LB |
treatment effect lower bound |
Delta_OC_UB |
treatment effect upper bound |
beta.mean |
range of values for prior mean |
eff.ss |
range of values for effective sample size |
ulow |
lower sample size value |
uupp |
upper sample size value |
for.plot |
data.frame from get.ss.bin.ssize.oc.df |
1 2 3 4 5 6 7 8 9 10 | ## Not run:
make.ss.bin.ppp()
make.ss.bin.spp()
get.ss.bin.trt.oc.df()
make.ss.bin.trt.oc1()
make.ss.bin.trt.oc2()
get.ss.bin.ssize.oc.df()
make.ss.bin.ssize.oc()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.