plot.sa_des_bayesfreq: Plot the stopping boundaries of Bayesian-frequentist...

Description Usage Arguments Details Value See Also Examples

View source: R/plot.sa_des_bayesfreq.R

Description

Plots the stopping boundaries of Bayesian-frequentist single-arm trial designs determined using des_bayesfreq(). The possible (s,m) states during the trial are plotted in a colour coded manner to indicate their associated decision rules.

Usage

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

Arguments

x

An object of class "sa_des_bayesfreq", as returned by des_bayesfreq().

...

Additional objects of class "sa_des_bayesfreq". These will be grouped in to a list named "add_des".

output

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

Details

Support is available to simultaneously plot the stopping boundaries of multiple Bayesian-frequentist single-arm clinical trial designs for a single binary primary endpoint, using faceting.

Value

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

See Also

des_bayesfreq, opchar_bayesfreq, and their associated plot family of functions.

Examples

1
2
3
4
5
# Find the optimal two-stage Bayesian-frequentist design for the default
# parameters
des <- des_bayesfreq()
# Plot the stopping boundaries
plot(des)

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