bootstrapEstimates

fun ReportBuilder.bootstrapEstimates(estimates: List<BootstrapEstimateIfc>, caption: String? = null, confidenceLevel: Double = 0.95, showDetail: Boolean = false, showDensityPlot: Boolean = false)(source)

Appends a self-contained section summarising a list of BootstrapEstimateIfc objects. Typical sources are ksl.utilities.statistic.BootstrapSampler.bootStrapEstimates and ksl.utilities.statistic.CaseBootstrapSampler.bootStrapEstimates.

Produces (inside a section titled caption or "Bootstrap Estimates"):

  1. Overview paragraph — number of estimates k, common n, common B

  2. Bootstrap Estimates Summary DataTable — one row per estimate: Name | n | B | θ | Eθ* | Bias | SE | Percentile CI | Basic CI | BCa CI (optional); the BCa columns are included only when at least one entry is a Bootstrap instance; for mixed lists the BCa cells show "—" for plain ksl.utilities.statistic.BootstrapEstimate entries; when no entry is a Bootstrap (e.g. results from ksl.utilities.statistic.BootstrapSampler) the BCa columns are omitted entirely

  3. When showDetail is true, one bootstrapEstimate sub-section per estimate (each with its own showDensityPlot setting)

Parameters

estimates

the list of estimates to summarise

caption

optional section title

confidenceLevel

confidence level for all CI computations; must be in (0, 1)

showDetail

when true, appends a full bootstrapEstimate sub-section per estimate

showDensityPlot

passed through to each bootstrapEstimate when showDetail is true