Skip to content

fix(print): drop the flip counts from the printed inclusion tables; close the verdicts print with the robust count - #223

Merged
MaartenMarsman merged 4 commits into
developfrom
fix/printed-summaries
Nov 5, 2026
Merged

MaartenMarsman merged 4 commits into
developfrom
fix/printed-summaries

Conversation

@MaartenMarsman

Copy link
Copy Markdown
Collaborator

Two print-only changes on top of #222. The summary objects and the verdicts data frame are unchanged.

Printed inclusion tables (print.summary.bgms, print.summary.bgmCompare)

The directional flip counts n0->1 and n1->0 are no longer printed. They remain in summary(fit)$indicator and summary(fit)$main_difference_selection/$pairwise_difference_selection, so anyone who uses them can still read them from the object. The printed columns are now the Rao-Blackwellized inclusion estimate with its Monte Carlo standard error, standard deviation, effective sample size and R-hat, plus the one-sentence note from #222 on blank cells.

Verdicts print (print.bgms_verdicts)

The closing line of the printed table states the robust count first and the near-threshold count second:

7 verdicts lie far enough from an evidence threshold that Monte Carlo error does not move them.
2 lie within two standard errors of one, so a rerun could change them; a longer run settles them.

When no verdict is near a threshold the second sentence is "None lies within two standard errors of one." The fragile column is unchanged; its documentation calls it the near-threshold flag.

Verification

  • tests/testthat/test-methods.R, test-verdicts.R, test-summary-marking.R, test-bgmCompare.R, test-extractors.R, test-prior-sensitivity.R pass; snapshots for the verdicts and summary-marking prints updated.
  • R CMD check --as-cran: 0 errors, 0 warnings, 1 note (the incoming-feasibility URL check returned a 504 for the GitHub repository URL during the run).
  • styler and lintr clean; man pages regenerated.
  • Behavioural comparison develop vs branch: dev/review-2026-08/repro/printed-demos.R and printed-compare.R (run by run-printed.sh), output in ~/bgms-review/printed-comparison.txt. It shows the flip columns gone from the print and present in the object, and the new closing lines of verdicts().

Note

The flip counts appear in the current tutorial's printed output. The tutorial text has not been updated; that is a separate discussion.

…clusion table

print.summary.bgms() and print.summary.bgmCompare() print the inclusion table
without the n0->1 and n1->0 columns. The columns stay in summary(fit)$indicator
and every extractor. Snapshot and NEWS follow.
…e near-threshold count

print.bgms_verdicts() prints, for the indicators that carry a verdict, how many
lie far enough from an evidence threshold that Monte Carlo error does not move
them, then how many lie within two standard errors of one with the remedy of a
longer run; with none flagged the line says so. This replaces the
"Monte-Carlo fragile" warning that appeared only when some verdict was flagged.
The fragile column and the returned object are unchanged; its documentation
names it the near-threshold flag. Snapshot, tests and NEWS follow.
@MaartenMarsman
MaartenMarsman merged commit 4acc315 into develop Nov 5, 2026
0 of 8 checks passed
@MaartenMarsman
MaartenMarsman deleted the fix/printed-summaries branch November 5, 2026 22:02
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.

1 participant