plot.sa_des_fixed: Plot the stopping boundaries of single-stage single-arm trial...

Description Usage Arguments Details Value See Also Examples

View source: R/plot.sa_des_fixed.R

Description

Plots the stopping boundaries of single-stage single-arm trial designs determined using des_fixed(). 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_fixed'
plot(x, ..., output = F)

Arguments

x

An object of class "sa_des_fixed", as returned by des_fixed().

...

Additional objects of class "sa_des_fixed". 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 applicable designs, using faceting.

Value

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

See Also

des_fixed, opchar_fixed, est_fixed, pval_fixed, ci_fixed, and their associated plot family of functions.

Examples

1
2
3
4
5
6
7
8
# Find the optimal single-stage design for the default parameters
des    <- des_fixed()
# Plot the stopping boundaries
plot(des)
# Find the optimal single-stage design for a 10% type-I error rate
des_10 <- des_fixed(alpha = 0.1)
# Plot the stopping boundaries for both designs
plot(des, des_10)

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