Description Usage Arguments Details Value See Also Examples
View source: R/opchar_admissable.R
opchar_admissable()
supports the evaluation of the operating
characteristics of admissable group sequential single-arm clinical trial
designs for a single binary primary endpoint, determined using
des_admissable()
.
1 | opchar_admissable(des, k, pi, summary = F)
|
des |
An object of class |
k |
Calculations are performed conditional on the trial stopping in one
of the stages listed in vector |
pi |
A vector of response probabilities to evaluate operating characteristics at. This will internally default to be the π0 and π1 from the supplied designs if it is left unspecified. |
summary |
A logical variable indicating whether a summary of the unction's progress should be printed to the console. |
For each value of pi in
the supplied vector pi,
opchar_admissable()
evaluates the power, ESS, and other key
characteristics, of each of the supplied designs.
Calculations are performed conditional on the trial stopping in one of the
stages specified using the input (vector) k
.
A list of class "sa_opchar_admissable"
containing the
following elements
A tibble in the slot $opchar
summarising the operating
characteristics of the supplied designs.
Each of the input variables as specified, subject to internal modification.
des_admissable
, and their associated plot
family of functions.
1 2 3 4 | # Find the admissable two-stage design for the default parameters
des <- des_admissable()
# Determine operating characteristics for a range of response probabilities
opchar <- opchar_admissable(des, pi = seq(0, 1, 0.01))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.