View source: R/f_analysis_base.R
getStageResults | R Documentation |
Returns summary statistics and p-values for a given data set and a given design.
getStageResults(
design,
dataInput,
...,
stage = NA_integer_,
directionUpper = NA
)
design |
The trial design. |
dataInput |
The summary data used for calculating the test results.
This is either an element of |
... |
Further (optional) arguments to be passed:
|
stage |
The stage number (optional). Default: total number of existing stages in the data input. |
directionUpper |
Logical. Specifies the direction of the alternative,
only applicable for one-sided testing; default is |
Calculates and returns the stage results of the specified design and data input at the specified stage.
Returns a StageResults
object.
names
to obtain the field names,
print()
to print the object,
summary()
to display a summary of the object,
plot()
to plot the object,
as.data.frame()
to coerce the object to a data.frame
,
as.matrix()
to coerce the object to a matrix
.
Click on the link of a generic in the list above to go directly to the help documentation of
the rpact
specific implementation of the generic.
Note that you can use the R function methods
to get all the methods of a generic and
to identify the object specific name of it, e.g.,
use methods("plot")
to get all the methods for the plot
generic.
There you can find, e.g., plot.AnalysisResults
and
obtain the specific help documentation linked above by typing ?plot.AnalysisResults
.
Other analysis functions:
getAnalysisResults()
,
getClosedCombinationTestResults()
,
getClosedConditionalDunnettTestResults()
,
getConditionalPower()
,
getConditionalRejectionProbabilities()
,
getFinalConfidenceInterval()
,
getFinalPValue()
,
getRepeatedConfidenceIntervals()
,
getRepeatedPValues()
,
getTestActions()
## Not run:
design <- getDesignInverseNormal()
dataRates <- getDataset(
n1 = c(10, 10),
n2 = c(20, 20),
events1 = c( 8, 10),
events2 = c(10, 16))
getStageResults(design, dataRates)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.