View source: R/class_trial_comparison.R
| compare | R Documentation |
S3 generic for comparing existing trial planning objects. The ParameterSet
method creates a comparison or appends to an existing TrialComparison.
The ParameterSet method starts or extends a trial comparison.
compare(x, y)
## S3 method for class 'ParameterSet'
compare(x, y)
x |
A supported trial planning object or a |
y |
A trial design, design characteristics, sample size or power plan,
simulation result, list of supported objects, or |
For supported ParameterSet objects, compare(x, y) calls
getComparison() with x and y. Supported classes are TrialDesign,
TrialDesignCharacteristics, TrialDesignPlan, SimulationResults,
PowerAndAverageSampleNumberResult, EventProbabilities, NumberOfSubjects,
ConditionalPowerResults (including subclasses), PerformanceScore,
FisherInformation, and TrialDesignOptimalConditionalErrorCharacteristics.
If x is a TrialComparison, it calls x$add(y) instead. The input
validation and collection rules of getComparison() apply in both cases.
Objects are retained by reference without recalculating them.
A TrialComparison. When x is already a comparison, it is modified
by reference if y is supplied. Without y, a new comparison is returned.
getComparison(), add(), delete(), fetch.TrialComparison(), getObjects()
comp <- getDesignInverseNormal(kMax = 2) |>
compare(getSampleSizeMeans(alternative = 0.2)) |>
compare(getSampleSizeMeans(alternative = 0.59))
length(comp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.