dbSimulationResults

fun ReportBuilder.dbSimulationResults(db: KSLDatabase, expName: String, confidenceLevel: Double = 0.95, showPlots: Boolean = true)(source)

Appends a complete set of sections for the named experiment in the following order:

  1. Simulation Summary — experiment metadata and across-replication statistics table

  2. Histograms — one sub-section per response with histogram data (omitted if none)

  3. Frequencies — one sub-section per response with frequency data (omitted if none)

This is the DB equivalent of simulationResults.

Usage:

val doc = report("Pharmacy Study") {
dbSimulationResults(db, "Experiment 1")
}
doc.showInBrowser()

Parameters

db

the KSLDatabase to query

expName

the experiment name to report

confidenceLevel

confidence level for all statistical tables

showPlots

when true (default) histogram and frequency plots are included