Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TST/ENH: support for formulas in zero inflated models #6803

Open
josef-pkt opened this issue Jun 12, 2020 · 2 comments
Open

TST/ENH: support for formulas in zero inflated models #6803

josef-pkt opened this issue Jun 12, 2020 · 2 comments

Comments

@josef-pkt
Copy link
Member

question on mailing list

It looks like there are no unit tests and examples for from_formula for ZIP or ZINB.

Usage should be
ZeroInflatedPoisson.from_formula("count ~ bin + animal", my_dataframe)

with keyword options for
exog_infl=None, offset=None, inflation='logit', exposure=None

In my main notebook I used only numpy directly
https://gist.github.com/josef-pkt/c932904296270d75366a24ee92a4eb2f

ZeroInflated models are also not in formula.api

@josef-pkt
Copy link
Member Author

josef-pkt commented Jun 12, 2020

I tried a simple example for ZIP from_formula and it works correctly.
I had made a comment in the PR #3908 (comment)

needs unit tests

There is no formula support for exog_infl, see #3903

@josef-pkt
Copy link
Member Author

related issue: if we have formula in creating the model, then we need also formula support for transform in predict and related methods like get_distribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant