R/plot.multiarm_des_ss_bern.R
plot.multiarm_des_ss_bern.Rd
plot.multiarm_des_ss_bern()
produces power curve plots for a specified
single-stage multi-arm clinical trial design assuming the primary outcome is
Bernoulli distributed.
# S3 method for multiarm_des_ss_bern plot( x = des_ss_bern(), delta_min = -x$pi0 + 1e-06, delta_max = 1 - x$pi0 - 1e-06, delta = x$delta1 - x$delta0, density = 100, output = FALSE, print_plots = TRUE, summary = FALSE, ... )
x | A |
---|---|
delta_min | A |
delta_max | A |
delta | A |
density | A |
output | A |
print_plots | A |
summary | A |
... | Not currently used. |
If output = T
, a list containing the following elements
A list
in the slot $plots
containing the produced
plots.
Each of the input variables.
if (FALSE) { # The design for the default parameters des <- des_ss_bern() plot(des) # An A-optimal design, returning the avaiable outputs from # plot.multiarm_des_ss_bern() des_A <- des_ss_bern(ratio = "A") plots <- plot(des_A, output = T) # Using the root-K allocation rule, modifying the desired type of power, and # choosing an alternative multiple comparison correction des_root_K <- des_ss_bern(ratio = rep(1/sqrt(2), 2), correction = "holm_bonferroni", power = "disjunctive") plot(des_root_K) }