multiple Comparison
Appends a self-contained section for a MultipleComparisonAnalyzer.
Produces (inside a section titled mca.name or "Multiple Comparison Analysis" when the name is blank):
Alternative Statistics —
StatTableat altConfidenceLevelPairwise Differences —
DataTableof half-width CIs at diffConfidenceLevelMCB Max Intervals (when
directionis MCBDirection.MAX or MCBDirection.BOTH) —DataTablewith columnsAlternative | Lower | Upper | Possible Bestand aConfidenceIntervalsPlot. An alternative is Possible Best for max when its upper interval limit is strictly greater than zero.MCB Min Intervals (when
directionis MCBDirection.MIN or MCBDirection.BOTH) — same structure. An alternative is Possible Best for min when its lower interval limit is strictly less than zero.Screening — direction-matched
DataTable(s) of alternatives surviving screening at probCorrectSelection.
Usage:
// Full report — both max and min, all defaults from the MCA object
val doc = report("Throughput Study") {
multipleComparison(mca)
}
// Minimum only, custom indifference zone and PCS
val doc = report("Cost Study") {
multipleComparison(
mca,
direction = MCBDirection.MIN,
indifferenceZone = 5.0,
probCorrectSelection = 0.90
)
}Parameters
the multiple comparison analyzer to report
which MCB direction(s) to render; default MCBDirection.BOTH
delta for MCB interval construction; defaults to MultipleComparisonAnalyzer.defaultIndifferenceZone
confidence level for the alternatives StatTable; defaults to mca.defaultLevel
confidence level for the pairwise differences table; defaults to mca.defaultLevel
probability of correct selection for screening; defaults to mca.defaultLevel
true inserts an "Alternative Confidence Intervals" sub-section immediately after the Alternative Statistics table; the section contains a ConfidenceIntervalsPlot showing the across-replication CI for each alternative's mean at altConfidenceLevel; defaults to false
true inserts a "Response Distributions" sub-section after the CI plot sub-section (or directly after the statistics table when showAltCIPlot is false); the section contains a ksl.utilities.io.plotting.MultiBoxPlot with one box per alternative sourced from MultipleComparisonAnalyzer.observationsAsMap; defaults to false
optional override for the x-axis label of every plot emitted by this section (alt-CI, box plot, MCB max, MCB min). Blank / null falls back to "Alternative".
optional override for the y-axis label of every plot emitted by this section. Blank / null falls back to the MCA's response name (MultipleComparisonAnalyzer.name) or "Value" when the name is blank.