Skip to content

BUG: Tweedie EQL quasi-likelihood - #5543

Merged
kshedden merged 2 commits into
statsmodels:masterfrom
kshedden:tweedie_llobs
Mar 30, 2019
Merged

kshedden merged 2 commits into
statsmodels:masterfrom
kshedden:tweedie_llobs

Conversation

@kshedden

Copy link
Copy Markdown
Contributor

@thequackdaddy , @LudvicLaberge

The EQL formula from the SAS docs seems to have multiple issues (not just the 1-p factor in the denominator). I believe that the correct formula is here:

https://www.jstor.org/stable/2336136?seq=4#metadata_info_tab_contents

This PR fixes these errors. The results have changed, so what we were returning before was (presumably) wrong.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.0005%) to 84.53% when pulling bb12b94 on kshedden:tweedie_llobs into 82d75bf on statsmodels:master.

@codecov

codecov Bot commented Mar 24, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #5543 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5543      +/-   ##
==========================================
+ Coverage   82.02%   82.03%   +<.01%     
==========================================
  Files         588      588              
  Lines       93026    93062      +36     
  Branches    10313    10317       +4     
==========================================
+ Hits        76307    76345      +38     
+ Misses      14357    14355       -2     
  Partials     2362     2362
Impacted Files Coverage Δ
statsmodels/genmod/tests/test_glm.py 99.07% <100%> (+0.02%) ⬆️
statsmodels/genmod/families/family.py 96.29% <100%> (+0.1%) ⬆️
statsmodels/genmod/generalized_linear_model.py 91.09% <0%> (+0.34%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 82d75bf...bb12b94. Read the comment docs.

1 similar comment
@codecov

codecov Bot commented Mar 24, 2019

Copy link
Copy Markdown

Codecov Report

Merging #5543 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5543      +/-   ##
==========================================
+ Coverage   82.02%   82.03%   +<.01%     
==========================================
  Files         588      588              
  Lines       93026    93062      +36     
  Branches    10313    10317       +4     
==========================================
+ Hits        76307    76345      +38     
+ Misses      14357    14355       -2     
  Partials     2362     2362
Impacted Files Coverage Δ
statsmodels/genmod/tests/test_glm.py 99.07% <100%> (+0.02%) ⬆️
statsmodels/genmod/families/family.py 96.29% <100%> (+0.1%) ⬆️
statsmodels/genmod/generalized_linear_model.py 91.09% <0%> (+0.34%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 82d75bf...bb12b94. Read the comment docs.

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.

3 participants