| model_results | R Documentation |
Produces a human- and AI-readable results report, including a plain-English narrative, the fitted model equation with posterior mean coefficients substituted to 3 d.p., per-breakpoint summaries, the full parameter table, and convergence diagnostics. The output is entirely self-contained: no package documentation or source code is needed to interpret it.
model_results(object, ...)
## S3 method for class 'smoothbp_fit'
model_results(object, digits = 3, width = 80, ...)
object |
A |
... |
Unused. |
digits |
Integer; decimal places for all numerical output (default |
width |
Integer; line-wrap width for narrative text (default |
The function name model_results() is used rather than results() for
consistency with model_methods() and to avoid any namespace
conflict with results functions in other packages.
For models with covariates on any structural parameter, the substituted equation shows the intercept-only (reference-level) value; the full set of coefficients is listed in the PARAMETER ESTIMATES section.
The full results report as a single character string (invisibly).
The text is also printed to the console via cat().
## Not run:
fit <- smoothbp(y ~ tau, b0 = ~ 1 + (1 | subject), data = dat,
chains = 4L, iter = 2000L, warmup = 1000L, seed = 42L)
model_results(fit)
txt <- model_results(fit)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.