Description Usage Arguments Value See Also Examples
View source: R/plot.sa_opchar_bayesfreq.R
Plots the operating characteristics of Bayesian-frequentist single-arm trial designs
determined using opchar_bayesfreq()
. A range of plots are available, of which
the expected sample size and power curves will be printed by default.
1 2 |
x |
An object of class |
... |
Included for compatibility with the generic. Not currently used. |
output |
A logical variable indicating whether the outputs described below should be returned. |
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_bayesfreq
, and opchar_bayesfreq
, and
their associated plot
family of functions.
1 2 3 4 5 6 | # Find the optimal group sequential design for the default parameters
des <- des_bayesfreq()
# Determine operating characteristics for a range of response probabilities
opchar <- opchar_bayesfreq(des, pi = seq(0, 1, 0.01))
# Plot the expected sample size and power curve
plot(opchar)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.