plot.ph2rand_des: Plot the operating characteristics of a randomised clinical trial design that
assumes a Bernoulli distributed primary outcome variable
Description
plot.ph2rand_des plots the operating characteristics of a design
returned by des_one_stage or des_two_stage, under
a range of key response rate scenarios. For convenience, it also calls
plot.ph2rand_terminal to plot the terminal points of the
design.
Usage
# S3 method for ph2rand_des
plot(x, k = 1:x$J, output = FALSE, ...)
A numericvector indicating which stages
to consider in determining the probability mass function. That is, it will
condition the calculations on the trial ending in the stages given in
k. Defaults to 1:des$J (i.e., to all stages of the given
design).
output
A logical variable indicating whether available
outputs should be returned by the function.
...
Not currently used.
Value
If output = TRUE, a list containing each of the
input parameters along with a list in the slot $plots,
which gives all of the available produced plots.
# NOT RUN {# The default two-stage designdes <- des_two_stage()
# Print several key plotsplot(des)
# Determine and store all available plotsplots <- plot(des, output = TRUE)
# }