View source: R/f_analysis_base.R
getRepeatedConfidenceIntervals | R Documentation |
Calculates and returns the lower and upper limit of the repeated confidence intervals of the trial.
getRepeatedConfidenceIntervals(
design,
dataInput,
...,
directionUpper = NA,
tolerance = 1e-06,
stage = NA_integer_
)
design |
The trial design. |
dataInput |
The summary data used for calculating the test results.
This is either an element of |
... |
Further arguments to be passed to methods (cf., separate functions in "See Also" below), e.g.,
|
directionUpper |
Logical. Specifies the direction of the alternative,
only applicable for one-sided testing; default is |
tolerance |
The numerical tolerance, default is |
stage |
The stage number (optional). Default: total number of existing stages in the data input. |
The repeated confidence interval at a given stage of the trial contains the parameter values that are not rejected using the specified sequential design. It can be calculated at each stage of the trial and can thus be used as a monitoring tool.
The repeated confidence intervals are provided up to the specified stage.
Returns a matrix
with 2
rows
and kMax
columns containing the lower RCI limits in the first row and
the upper RCI limits in the second row, where each column represents a stage.
Other analysis functions:
getAnalysisResults()
,
getClosedCombinationTestResults()
,
getClosedConditionalDunnettTestResults()
,
getConditionalPower()
,
getConditionalRejectionProbabilities()
,
getFinalConfidenceInterval()
,
getFinalPValue()
,
getRepeatedPValues()
,
getStageResults()
,
getTestActions()
## Not run:
design <- getDesignInverseNormal(kMax = 2)
data <- getDataset(
n = c( 20, 30),
means = c( 50, 51),
stDevs = c(130, 140)
)
getRepeatedConfidenceIntervals(design, dataInput = data)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.