return.ss.ng.int.req: Return single sample normal-gamma predictive probability

View source: R/return.ss.ng.int.req.r

return.ss.ng.int.reqR Documentation

Return single sample normal-gamma predictive probability

Description

Return single sample normal-gamma predictive probability

Usage

return.ss.ng.int.req(
  mu.0.t = 0,
  n.0.t = 1e-04,
  alpha.0.t = 0.25,
  beta.0.t = 1,
  xbar.t = seq(-5, 5, 0.1),
  s.t = 2,
  interim.n.t = c(5, 10, 15, 20, 25, 30, 35),
  final.n.t = 40,
  Delta.lrv = 1.25,
  Delta.tv = 1.75,
  tau.tv = 0.1,
  tau.lrv = 0.8,
  tau.ng = 0.65,
  xbar_ng = NULL,
  xbar_go = NULL,
  go.thresh = 0.8,
  ng.thresh = 0.8
)

Arguments

mu.0.t

prior mean for treatment group

n.0.t

prior effective sample size for treatment group

alpha.0.t

prior alpha parameter for treatment group

beta.0.t

prior beta parameter for treatment group

xbar.t

sample mean for treatment group

s.t

sample sd for treatment group

interim.n.t

interim sample size

final.n.t

final sample size

Delta.lrv

Min TPP

Delta.tv

Base TPP

tau.tv

threshold associated with Base TPP

tau.lrv

threshold associated with Min TPP

tau.ng

threshold associated with No-Go

xbar_ng

xbar for no-go; leave null for standard rule

xbar_go

xbar for go; leave null for standard rule

go.thresh

go threshold for predictive probability

ng.thresh

no-go threshold for predictive probability

Value

A data.frame is returned

Examples

my.ss.ng.int.req <- return.ss.ng.int.req()
head(my.ss.ng.int.req)

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