multipleComparisonCIPlot

fun ReportBuilder.multipleComparisonCIPlot(mca: MultipleComparisonAnalyzer, confidenceLevel: Double = mca.defaultLevel, referencePoint: Double? = null, caption: String? = null, xAxisLabel: String? = null, yAxisLabel: String? = null)(source)

Appends a ConfidenceIntervalsPlot showing the across-replication confidence interval for each alternative's mean.

Each alternative is represented by a point (its sample mean) and an error bar spanning its CI at confidenceLevel. The intervals are computed from MultipleComparisonAnalyzer.statistics via ksl.utilities.io.StatisticReporter.confidenceIntervals.

An optional vertical referencePoint line can mark a target value or known standard; defaults to null (no reference line) because there is no universal reference for absolute alternative means.

Independently callable in any composite document:

report("Throughput Study") {
multipleComparisonCIPlot(mca, confidenceLevel = 0.95)
}

Axis labels default to "Alternative" (x) and the MCA's response name (y); a blank MCA name falls the y-axis back to "Value". Override either via xAxisLabel / yAxisLabel.

Parameters

mca

the analyzer whose per-alternative statistics supply the intervals

confidenceLevel

confidence level for the intervals; defaults to mca.defaultLevel

referencePoint

optional x-intercept for a reference line; null suppresses it

caption

optional plot caption; defaults to "Alternative Confidence Intervals — <mca.name>"

xAxisLabel

optional override for the x-axis label

yAxisLabel

optional override for the y-axis label