View source: R/f_analysis_base.R
| getRepeatedPValues | R Documentation |
Calculates the repeated p-values for a given test results.
getRepeatedPValues(stageResults, ..., tolerance = 1e-06)
stageResults |
The results at given stage, obtained from |
... |
Ensures that all arguments (starting from the "...") are to be named and that a warning will be displayed if unknown arguments are passed. |
tolerance |
The numerical tolerance, default is |
The repeated p-value at a given stage of the trial is defined as the smallest significance level under which at given test design the test results obtain rejection of the null hypothesis. It can be calculated at each stage of the trial and can thus be used as a monitoring tool.
The repeated p-values are provided up to the specified stage.
In multi-arm trials, the repeated p-values are defined separately for each treatment comparison within the closed testing procedure.
Returns a numeric vector of length kMax or in case of multi-arm stage results
a matrix (each column represents a stage, each row a comparison)
containing the repeated p values.
Repeated p-values are calculated by identifying the smallest global
significance level for which the observed test statistic would lead to
rejection under the same design rule. Therefore, they require that the
design can be re-created for arbitrary values of the global significance
level. For user-defined designs with fixed userAlphaSpending values,
this alpha-dependent design family is not uniquely defined.
Consequently, repeated p-values are not available for such designs.
Repeated p-values are also unavailable for sequential designs with
typeBetaSpending = "bsUser", regardless of whether futility is binding.
These calculations return NA with a warning; other analysis results
remain available.
Other analysis functions:
getAnalysisResults(),
getClosedCombinationTestResults(),
getClosedConditionalDunnettTestResults(),
getConditionalPower(),
getConditionalRejectionProbabilities(),
getFinalConfidenceInterval(),
getFinalPValue(),
getRepeatedConfidenceIntervals(),
getStageResults(),
getTestActions()
## Not run:
design <- getDesignInverseNormal(kMax = 2)
data <- getDataset(
n = c( 20, 30),
means = c( 50, 51),
stDevs = c(130, 140)
)
getRepeatedPValues(getStageResults(design, dataInput = data))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.