Skip to content

Keep GLM diagnostics aligned with zero-weight observations - #1283

Open
M-Colley wants to merge 1 commit into
tidymodels:mainfrom
M-Colley:fix/1250-zero-weight-glm-diagnostics
Open

M-Colley wants to merge 1 commit into
tidymodels:mainfrom
M-Colley:fix/1250-zero-weight-glm-diagnostics

Conversation

@M-Colley

Copy link
Copy Markdown

Fixes #1250.

Keep the row-aligned standardized residuals and Cook's distances produced by the shared helper. Pass the requested residual type through to rstandard(). Preserve the existing padded diagnostics for fits that use na.exclude.

The new regression failed on main and passed with the fix. It verifies both residual types against base R with zero-weight observations between nonzero-weight rows. All 906 assertions in the related model suites passed, and the source package built successfully.

Prepared with Codex and checked in a separate Codex review.

This branch has not been deployed

No deployments
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.

augment.glm() fails with binomial(link=logit) fitted to data using weights

2 participants