Skip to content

Stop considering that Geometric has a dispersion parameter#633

Merged
nalimilan merged 1 commit into
masterfrom
nl/geometric
Jan 4, 2026
Merged

Stop considering that Geometric has a dispersion parameter#633
nalimilan merged 1 commit into
masterfrom
nl/geometric

Conversation

@nalimilan

@nalimilan nalimilan commented Jan 3, 2026

Copy link
Copy Markdown
Member

This is just incorrect. Fix tests to reflect correct degrees of freedom and therefore AIC, BIC and standard errors.

Also avoid defining dispersion_parameter fallback for any distribution: it's clearer for users to get a MethodError so that they have to define the appropriate method themselves, than silently returning a wrong value.

NegativeBinomial will be fixed separately as it requires a deeper refactoring of negbin (#624).

Fixes #564, and part of #617.

This is just incorrect. Fix tests to reflect correct degrees of freedom
and therefore AIC, BIC and standard errors.

Also avoid defining `dispersion_parameter` fallback for any distribution:
it's clearer for users to get a `MethodError` so that they have to define
the appropriate method themselves, than silently returning a wrong value.

`NegativeBinomial` will be fixed separately as it requires a deeper
refactoring of `negbin` (#624).
@codecov

codecov Bot commented Jan 3, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.94%. Comparing base (8976b53) to head (c2ed1c0).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/glmtools.jl 0.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #633   +/-   ##
=======================================
  Coverage   96.94%   96.94%           
=======================================
  Files           8        8           
  Lines        1213     1213           
=======================================
  Hits         1176     1176           
  Misses         37       37           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@nalimilan
nalimilan merged commit c5e2b2a into master Jan 4, 2026
10 of 11 checks passed
@nalimilan
nalimilan deleted the nl/geometric branch January 4, 2026 15:54
nalimilan added a commit that referenced this pull request Apr 19, 2026
This is just incorrect. Fix tests to reflect correct degrees of freedom
and therefore AIC, BIC and standard errors.

Also avoid defining `dispersion_parameter` fallback for any distribution:
it's clearer for users to get a `MethodError` so that they have to define
the appropriate method themselves, than silently returning a wrong value.

`NegativeBinomial` will be fixed separately as it requires a deeper
refactoring of `negbin` (#624).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dispersion_parameter(::Geometric) incorrectly returns true

2 participants