calc.bnd.binR Documentation

Stopping Boundary Calculation (Binary Data)

Description

Internal workhorse function to calculate stopping boundary for a given method, treating toxicities as binary data

Usage

calc.bnd.bin(n, p0, type, cval, param)

Arguments

n

Maximum sample size for safety monitoring

p0

The toxicity probability under the null hypothesis

type

The method used for constructing the stopping rule

cval

Critical value for stopping rule method

param

Extra parameter(s) needed for certain stopping rule methods. For binomial Wang-Tsiatis tests, this is the Delta parameter. For the Geller et al. method, this is the pair of hyperparameters (a,b) for the beta prior on the toxicity probability. For Chen and Chaloner's method, this is the pair of hyperparameters (a,b) for the beta prior on the toxicity probability, the targeted alternative toxicity probability p1, and the threshold nu for the posterior probability that p > p1. For modified SPRT, this is the targeted alternative toxicity probability p1.

Value

A vector of stopping boundaries at the sample sizes 1, 2, ..., n