plot.sa_des_curtailed: Plot the stopping boundaries of curtailed single-arm trial...

Description Usage Arguments Details Value See Also Examples

View source: R/plot.sa_des_curtailed.R

Description

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

Arguments

x

An object of class "sa_des_gs", as returned by des_gs().

...

Additional objects of class "sa_des_gs". 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 group sequential 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_curtailed, opchar_curtailed, and their associated plot family of functions.

Examples

1
2
3
4
5
6
7
8
# Find the optimal two-stage design for the default parameters with NSC
des         <- des_curtailed()
# Plot the stopping boundaries
plot(des)
# Find the optimal two-stage design for a 10% type-I error rate with NSC
des_10      <- des_curtailed(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.