Skip to content

BUG/ENH fix and enh GLM, family get_distribution - #7535

Merged
josef-pkt merged 3 commits into
statsmodels:mainfrom
josef-pkt:fix_get_distribution
Jul 6, 2021
Merged

josef-pkt merged 3 commits into
statsmodels:mainfrom
josef-pkt:fix_get_distribution

Conversation

@josef-pkt

@josef-pkt josef-pkt commented Jul 5, 2021 •

Copy link
Copy Markdown
Member

see #106, and fixes bug in Gamma parameterization closes #6650

binomial is missing, still to do, design/usage of n_trials?

tweedie is missing but we don't have a distribution for it.
for rvs we could use compound poisson if 1 < p < 2 which is the "mixed" range

WIP:
this adds get_distribution to families,
GLM.get_distribution does not yet delegate to it.

update merged version has GLM.get_distribution delegating to family get_distribution

@josef-pkt

Copy link
Copy Markdown
Member Author

two azure environments fail in statespace unit tests,
nothing related to this PR, AFAICS

@josef-pkt
josef-pkt force-pushed the fix_get_distribution branch from 5d479eb to 825d492 Compare July 6, 2021 15:04
@josef-pkt

Copy link
Copy Markdown
Member Author

this should be finished now and ready to merge.

This adds correct get_distribution for all families except tweedie.

I did not add any internal usage of it, e.g. PIT diagnostic and probplots that I had in my notebook, are not included.

@josef-pkt

Copy link
Copy Markdown
Member Author

all green (azure pre still fails in statespace)
LGTM is still not finished after working for 44min

merging

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 GLM gamma get_distribution assumes scale=1

1 participant