View source: R/getOverallPower.R
getOverallPower | R Documentation |
Calculate the overall power and other operating characteristics of a design.
getOverallPower(design, alternative)
design |
An object of class |
alternative |
Assumed relative effect size. |
This function is used to evaluate the overall performance of a design.
The probabilities for first-stage futility, first-stage efficacy and overall efficacy (i.e., overall power) are saved in an object of class PowerResultsOptimalConditionalError
.
The overall power of the design at the provided effect size.
getDesignOptimalConditionalErrorFunction()
, getSimulationResults()
# Get a design
design <- getDesignOptimalConditionalErrorFunction(
alpha = 0.025, alpha1 = 0.001, alpha0 = 0.5, conditionalPower = 0.9,
delta1 = 0.25, likelihoodRatioDistribution = "fixed", deltaLR = 0.25,
firstStageInformation = 80, useInterimEstimate = FALSE,
)
getOverallPower(design, alternative = 0.25)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.