statistic

fun ReportBuilder.statistic(stat: StatisticIfc, confidenceLevel: Double = 0.95)(source)

Appends a self-contained section for a single StatisticIfc instance.

The section title is stat.name. Inside the section a ksl.utilities.io.report.ast.ReportNode.StatPropertyTable is produced — a vertical Property | Value table showing all 18 statistical properties of this variable: Count, Average, Std Dev, Std Error, Half-width, Confidence Level, CI Lower, CI Upper, Min, Max, Sum, Variance, Dev Sum of Sq, Kurtosis, Skewness, Lag-1 Cov, Lag-1 Corr, Von Neumann Test Statistic, and Missing.

Usage:

val doc = report("Service Analysis") {
statistic(serviceTime)
}

Parameters

stat

the statistic to report

confidenceLevel

confidence level for the half-width and CI rows; must be in (0, 1)