Returns the final p-value for given stage results.
getFinalPValue(design, stageResults, ...)
The trial design.
The results at given stage, obtained from getStageResults
.
The stage number (optional). Default: total number of existing stages in the data input.
The calculation of the final p-value is based on the stagewise ordering of the sample space.
This enables the calculation for both the non-adaptive and the adaptive case.
For Fisher's combination test, it is available for kMax = 2
only.