linearModel

fun ReportBuilder.linearModel(model: LinearModel, caption: String? = null)(source)

Appends a single section describing the terms of model.

Produces (inside a section titled caption or "Linear Model"):

  • Overview paragraph — main effects, term count, intercept flag

  • DataTable (headers: Term | Components | Order): one row per term, sorted by complexity (main effects first, then interactions by term length); the Term column uses the standard A*B key notation; Components shows the factors joined with ×; Order is a human-readable label (Main Effect, 2-Way Interaction, Quadratic, Cubic, etc.)

Parameters

model

the LinearModel to report

caption

optional section title; defaults to "Linear Model"