Skip to content

BUG/ENH Fix negbin exposure #1611 - #1612

Merged
josef-pkt merged 3 commits into
statsmodels:masterfrom
josef-pkt:fix_negbin_exposure_1611
Apr 21, 2014
Merged

josef-pkt merged 3 commits into
statsmodels:masterfrom
josef-pkt:fix_negbin_exposure_1611

Conversation

@josef-pkt

Copy link
Copy Markdown
Member

fixes #1611

this uses predict() instead of hardcoded exp(exog dot params)

enables one test from #1610 will cause merge conflict
rebase on top of #1610 can drop the second commit

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same when pulling 9298a57 on josef-pkt:fix_negbin_exposure_1611 into e7e018a on statsmodels:master.

@jseabold

Copy link
Copy Markdown
Member

You can remove the TODO at line 660 with this.

@josef-pkt

Copy link
Copy Markdown
Member Author

rebased on master and force pushed

@josef-pkt

Copy link
Copy Markdown
Member Author

all green, merging

todo: followup more unit tests, needs tests for nb1 with exposure Stata dispersion(constant)

josef-pkt added a commit that referenced this pull request Apr 21, 2014
@josef-pkt
josef-pkt merged commit a42463d into statsmodels:master Apr 21, 2014
@josef-pkt
josef-pkt deleted the fix_negbin_exposure_1611 branch April 21, 2014 04:24
PierreBdR pushed a commit to PierreBdR/statsmodels that referenced this pull request Sep 2, 2014
@josef-pkt josef-pkt added this to the 0.6 milestone Apr 30, 2018
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.

BUG NegativeBinomial ignores exposure and offset

3 participants