opchar_admissable: Determine the operating characteristics of admissable group...

Description Usage Arguments Details Value See Also Examples

View source: R/opchar_admissable.R

Description

opchar_admissable() supports the evaluation of the operating characteristics of admissable group sequential single-arm clinical trial designs for a single binary primary endpoint, determined using des_admissable().

Usage

1

Arguments

des

An object of class "sa_des_admissable", as returned by des_admissable().

k

Calculations are performed conditional on the trial stopping in one of the stages listed in vector k. Thus, k should be a vector of integers, with elements between one and the maximal number of possible stages in the supplied designs. If left unspecified, it will internally default to all possible stages.

pi

A vector of response probabilities to evaluate operating characteristics at. This will internally default to be the π0 and π1 from the supplied designs if it is left unspecified.

summary

A logical variable indicating whether a summary of the unction's progress should be printed to the console.

Details

For each value of pi in the supplied vector pi, opchar_admissable() evaluates the power, ESS, and other key characteristics, of each of the supplied designs.

Calculations are performed conditional on the trial stopping in one of the stages specified using the input (vector) k.

Value

A list of class "sa_opchar_admissable" containing the following elements

See Also

des_admissable, and their associated plot family of functions.

Examples

1
2
3
4
# Find the admissable two-stage design for the default parameters
des         <- des_admissable()
# Determine operating characteristics for a range of response probabilities
opchar      <- opchar_admissable(des, pi = seq(0, 1, 0.01))

mjg211/singlearm documentation built on May 8, 2021, 3:17 a.m.