Skip to content

BUG: ZI predict, fix offset default if None, allow exog_infl None if constant - #7670

Merged
josef-pkt merged 1 commit into
statsmodels:mainfrom
josef-pkt:zi_predict_defaults
Aug 25, 2021
Merged

josef-pkt merged 1 commit into
statsmodels:mainfrom
josef-pkt:zi_predict_defaults

Conversation

@josef-pkt

Copy link
Copy Markdown
Member

closes #4757 closes #4952

cleanup conditions if auxiliary predict kwds are None, offset, exposure and exog_infl.

default, if offset is None, was offset=0. Now it uses insample offset if exog is None and offset is None.

exog_infl does not need to be specified if exog_infl in model creation was None.

@josef-pkt josef-pkt added comp-discrete type-bug-wrong serious bugs that silently return incorrect numbers labels Aug 24, 2021
@josef-pkt josef-pkt added this to the 0.13 milestone Aug 24, 2021
@josef-pkt
josef-pkt merged commit b2397a2 into statsmodels:main Aug 25, 2021
@josef-pkt
josef-pkt deleted the zi_predict_defaults branch August 28, 2021 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-discrete type-bug-wrong serious bugs that silently return incorrect numbers type-enh

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Zero-Inflated Poisson/Negative Binomial: not predicting for arrays of different size? BUG: predict in ZeroInflated fails if exog_infl not specified

1 participant