Skip to content

Skip fitted-value diagnostics for constant predictions - #1028

Merged
strengejacke merged 4 commits into
easystats:mainfrom
M-Colley:fix/986-skip-constant-fitted-panels
Nov 24, 2026
Merged

strengejacke merged 4 commits into
easystats:mainfrom
M-Colley:fix/986-skip-constant-fitted-panels

Conversation

@M-Colley

Copy link
Copy Markdown
Contributor

Fixes #986.

Omit the residuals-versus-fitted and scale-location panels when the fitted values are constant. An intercept-only lm can contain rounding differences in its fitted values, so use its model structure to identify that case. The guard preserves both panels when an offset or predictor makes the fitted values vary.

The regression test checks that a one-sample fit still produces QQ data and that models with small varying predictions or varying offsets retain both fitted-value panels. The focused diagnostic suite passed 73 expectations. Its two saturated-model warnings also occur on main, and 15 cases require optional packages. R CMD build and R CMD check passed with the available dependencies.

Prepared with Codex and checked in a separate Codex review.

@strengejacke

Copy link
Copy Markdown
Member

Thanks, LGTM!

@strengejacke
strengejacke merged commit c8e7b85 into easystats:main Nov 24, 2026
8 of 20 checks passed
@M-Colley
M-Colley deleted the fix/986-skip-constant-fitted-panels branch November 24, 2026 23:21
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.

check_models for one-sample test

2 participants