Skip to content

Handle re.form=NA in table footer - #720

Merged
strengejacke merged 5 commits into
mainfrom
footer_reform_na
Nov 22, 2026
Merged

strengejacke merged 5 commits into
mainfrom
footer_reform_na

Conversation

@strengejacke

Copy link
Copy Markdown
Member

No description provided.

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

A moderate active issue remains because the suppression flag is not propagated through the contrast path, allowing a misleading random-effects footer for non-cluster terms.

1 open issue
What changed in this PR

Updates mixed-model table footers to distinguish re.form = NA from explicit random-effects formulas and adds regression coverage for these cases.

Changes:

  • Tracks the type of re.form supplied when collecting marginal means.
  • Adjusts random-effects footer wording for re.form = NA and formula-based specifications.
  • Adds tests for single- and multiple-grouping-factor models.
File Description
tests/​testthat/​test-table_footer.R Adds regression tests for re.form = NA and formula-based random-effects footer behavior.
R/​table_footer.R Updates random-effects footer generation based on the supplied re.form specification.
R/​get_marginalmeans.R Captures random-effects configuration metadata used by table-footer generation.

Review effort: Lite

Comment thread R/table_footer.R Resolved
@strengejacke
strengejacke merged commit 2e33567 into main Nov 22, 2026
12 of 20 checks passed
@strengejacke
strengejacke deleted the footer_reform_na branch November 22, 2026 10:35
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.

2 participants