make.ts.ng.ria: Make two-sample normal-gamma rule in action plot

View source: R/make.ts.ng.ria.r

make.ts.ng.riaR Documentation

Make two-sample normal-gamma rule in action plot

Description

Make two-sample normal-gamma rule in action plot

Usage

make.ts.ng.ria(
  mu.0.c = 0,
  alpha.0.c = 2.5,
  beta.0.c = 10,
  n.0.c = 10,
  mu.0.t = 0,
  alpha.0.t = 0.25,
  beta.0.t = 1,
  n.0.t = 1e-04,
  xbar.c = 0.25,
  s.c = 1.5,
  n.c = 40,
  xbar.t = 2.5,
  s.t = 1.5,
  n.t = 40,
  Delta.lrv = 1.5,
  Delta.tv = 3,
  tau.ng = 0.65,
  tau.lrv = 0.8,
  tau.tv = 0.2,
  seed = 1234,
  n.MC = 1000,
  nlines = 25,
  nlines.ria = 20,
  tsize = 4,
  add.table = TRUE
)

Arguments

mu.0.c

prior mean for control group

alpha.0.c

prior alpha parameter for control group

beta.0.c

prior beta parameter for control group

n.0.c

prior effective sample size parameter for control group

mu.0.t

prior mean for treatment group

alpha.0.t

prior alpha parameter for treatment group

beta.0.t

prior beta parameter for treatment group

n.0.t

prior effective sample size parameter for treatment group

xbar.c

control mean

s.c

control sd

n.c

control sample size

xbar.t

treatment mean

s.t

treatment sd

n.t

treatment sample size

Delta.lrv

TPP Lower Reference Value aka Min TPP

Delta.tv

TPP Target Value aka Base TPP

tau.ng

threshold associated with No-Go

tau.lrv

threshold associated with Min TPP

tau.tv

threshold associated with Base TPP

seed

random seed

n.MC

n for MC sampling

nlines

Control for text spacing

nlines.ria

Control for text spacing

tsize

Control for text size

add.table

provides extended output summaries

Value

A ggplot object is returned

Examples

my.ts.ng.ria <- make.ts.ng.ria(add.table=TRUE)
plot(my.ts.ng.ria[[1]])
my.ts.ng.ria[[2]]
my.ts.ng.ria[[3]]
my.ts.ng.ria[[4]]

GNGTools documentation built on Dec. 16, 2022, 5:09 p.m.