bootstrap

fun ReportBuilder.bootstrap(bs: Bootstrap, caption: String? = null, confidenceLevel: Double = 0.95, showDensityPlot: Boolean = false)(source)

Appends a self-contained section that first reports the Bootstrap configuration and then delegates to bootstrapEstimate for the statistical results.

Produces (inside a section titled caption or "Bootstrap — <name>"):

  1. Bootstrap Configuration DataTable — estimator type, original sample size n, number of bootstrap samples requested B, RNG stream number, antithetic flag

  2. Full bootstrapEstimate sub-section (statistics, bias, SE, MSE, all CIs including BCa and Bootstrap-t, optional density plot)

Parameters

bs

the Bootstrap instance to report

caption

optional section title

confidenceLevel

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

showDensityPlot

when true, appends a histogram of the bootstrap replicates