plot.sa_opchar_adaptive: Plot the operating characteristics of adaptive two-stage...

Description Usage Arguments Value See Also Examples

View source: R/plot.sa_opchar_adaptive.R

Description

Plots the operating characteristics of adaptive two-stage single-arm trial designs determined using opchar_adaptive(). A range of plots are available, of which the expected sample size and power curves will be printed by default.

Usage

1
2
## S3 method for class 'sa_opchar_adaptive'
plot(x, ..., output = F)

Arguments

x

An object of class "sa_opchar_adaptive", as returned by opchar_adaptive().

...

Included for compatibility with the generic. Not currently used.

output

A logical variable indicating whether the outputs described below should be returned.

Value

If output = TRUE, a list containing the following elements is returned

See Also

des_adaptive, opchar_adaptive, and their associated plot family of functions.

Examples

1
2
3
4
5
6
# Find the optimal group sequential design for the default parameters
des         <- des_adaptive()
# Determine operating characteristics for a range of response probabilities
opchar      <- opchar_adaptive(des, pi = seq(0, 1, 0.01))
# Plot the expected sample size and power curves
plot(opchar)

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