Learn R Programming

GNGTools (version 1.0.0)

get.ss.bin.df: Get single sample binary data.frame

Description

Get Go/No-go/Continue result

Usage

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
)

Value

returns a data.frame with GO/No-Go probabilities and decisions

Arguments

a.trt

beta prior hyperparameter

b.trt

beta prior hyperparameter

beta.mean

mean of beta prior

eff.ss

effective sample size of beta prior

x.trt

sample responses

n.trt

sample size

Delta.tv

Base TPP

Delta.lrv

Min TPP

tau.tv

Base TPP threshold

tau.lrv

Min TPP threshold

tau.ng

No-Go threshold

rp

logical for reparameterized beta

Examples

Run this code
my.ss.bin.df <- get.ss.bin.df()
head(my.ss.bin.df)

Run the code above in your browser using DataLab