Description Usage Arguments Value See Also Examples
View source: R/plot.sa_pval_fixed.R
Plots the p-values, and the performance of the p-value calculation
procedures, in a single-stage single-arm trial design for a single binary
endpoint determined using pval_fixed()
. A range of plots are
available, of which the p-values and the expected p-value curve 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_fixed
, opchar_fixed
,
est_fixed
, pval_fixed
, ci_fixed
,
and their associated plot
family of functions.
1 2 3 4 5 6 7 | # Find the optimal single-stage design for the default parameters
des <- des_fixed()
# Determine the performance of the p-value calculation procedures for a range
# of possible response probabilities
pval <- pval_fixed(des, pi = seq(from = 0, to = 1, by = 0.01))
# Plot the p-values and the calculation procedures performance
plot(pval)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.