Learn R Programming

GNGTools (version 1.0.0)

interim.calculator: interim.calculator

Description

interim.calculator

Usage

interim.calculator(
  a.trt = 1,
  b.trt = 1,
  Delta.lrv = 0.3,
  Delta.tv = 0.45,
  tau.tv = 0.1,
  tau.lrv = 0.8,
  tau.ng = 0.65,
  interim.n.t = 15,
  final.n.t = 100,
  p.success = 0.4,
  responses = 10,
  x_ng = NULL,
  x_go = NULL,
  go.thresh = 0.8,
  ng.thresh = 0.8
)

Value

a data.frame is returned

Arguments

a.trt

alpha parameter

b.trt

beta parameter

Delta.lrv

TPP info

Delta.tv

TPP info

tau.tv

thresholds

tau.lrv

info

tau.ng

info

interim.n.t

interim sample size

final.n.t

final sample size

p.success

probability of success

responses

number of responders

x_ng

number needed for no-go

x_go

number needed for go

go.thresh

go threshold

ng.thresh

no-go threshold

Examples

Run this code
interim.calculator(a.trt = 1, b.trt = 1,Delta.lrv = .3, Delta.tv = .45,tau.tv = 0.10,
tau.lrv = .80, tau.ng = .65,interim.n.t = 15,final.n.t = 100, p.success = .4,
responses=10,x_ng = NULL, x_go=NULL,go.thresh=0.8, ng.thresh=0.8)

Run the code above in your browser using DataLab