Skip to content

Print footer line for prediction intervals - #673

Merged
strengejacke merged 5 commits into
easystats:mainfrom
jmgirard:prediction-interval-footer
Oct 13, 2026
Merged

strengejacke merged 5 commits into
easystats:mainfrom
jmgirard:prediction-interval-footer

Conversation

@jmgirard

@jmgirard jmgirard commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Adds Intervals are prediction intervals. to the footer when the printed intervals are prediction intervals (estimate_prediction(), or predict = "prediction"). The footer reads the predict attribute returned by insight::get_predicted(), so models where insight falls back to expectations (e.g. glmmTMB, gam) don't get the line.

The brms Wiener snapshots (tests/testthat/_snaps/brms.md) are updated with the new line. test-brms.R:26 fails for me on main too, so that one is unrelated.

Closes #485

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Moderate findings remain, including potentially incorrect footer output and an outdated brms snapshot.

1 open finding
What changed in this PR

Adds a footer identifying prediction intervals based on the effective prediction type.

Changes:

  • Adds prediction-interval footer logic.
  • Propagates effective prediction metadata.
  • Adds tests and updates NEWS/version metadata.
File Summary
tests/​testthat/​test-table_footer.R Adds footer behavior tests.
R/​table_footer.R Prints the new footer; moderate issues remain around selected columns, ambiguous CI_low names, and the brms snapshot.
R/​estimate_predicted.R Passes effective prediction metadata to the footer.
NEWS.md Documents the change.
DESCRIPTION Increments the development version.

🧠 Review effort: Lite


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread R/table_footer.R
@strengejacke
strengejacke merged commit 5bc0e1b into easystats:main Oct 13, 2026
8 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Print out prediction type

3 participants