Description Usage Arguments Details Value See Also Examples
View source: R/plot.sa_des_adaptive.R
Plots the second stage sample sizes of two-stage adaptive single-arm trial
designs determined using des_adaptive()
. The values of
n2(sn1
)) are plotted.
1 2 |
x |
An object of class |
... |
Additional objects of class |
output |
A logical variable indicating whether the outputs described below should be returned. |
Support is available to simultaneously plot the second stage sample sizes of multiple two-stage adaptive single-arm clinical trial designs for a single binary primary endpoint.
If output = TRUE
, a list containing the following elements is returned
A list in the slot $plot_des
containing the available plots.
Each of the input variables as specified, subject to internal modification.
des_adaptive
, opchar_adaptive
, and their
associated plot
family of functions.
1 2 3 4 5 6 7 8 | # Find the optimal adaptive two-stage design for the default parameters
des <- des_adaptive()
# Plot the stopping boundaries
plot(des)
# Find the optimal adaptive two-stage design for a 10% type-I error rate
des_10 <- des_adaptive(alpha = 0.1)
# Plot the second stage sample sizes for both designs
plot(des, des_10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.