bdryfcn.surv {stoppingrule}R Documentation

Stopping Rule Boundary Function (Survival Data)

Description

Calculate the boundary for a given stopping rule

Usage

bdryfcn.surv(n, p0, type, tau, cval, param = NULL)

Arguments

n

Maximum sample size for safety monitoring

p0

The probability of a toxicity occurring in tau units of time under the null hypothesis

type

The method used for constructing the stopping rule. Choices including a Pocock test ("Pocock"), a O'Brein-Fleming test ("OBF"), a Wang-Tsiatis test ("WT"), the Bayesian Gamma-Poisson method ("GP"), a truncated sequential probability ratio test ("SPRT"), and a maximized SPRT ("MaxSPRT")

tau

Length of observation period

cval

Critical value for the stopping rule. For Wang-Tsiatis tests, this is the Delta parameter. For the Bayesian Gamma-Poisson method, this is the threshold on the posterior probability. For the truncated SPRT, this is the threshold on the log likelihood ratio. For the MaxSPRT, this is the threshold on the log generalized likelihood ratio.

param

A vector of the extra parameter(s) needed for certain stopping rule methods. For Wang-Tsiatis tests, this is the Delta parameter. For truncated SPRT, this is the targeted alternative toxicity probability p1. For Bayesian Gamma-Poisson model, this is the vector of hyperparameters (shape,rate) for the gamma prior on the toxicity event rate.

Value

A univariate function that defines the rejection boundary at any amount of total follow-up time


[Package stoppingrule version 0.4.0 Index]