Skip to content

ENH/REF/DOC improve hurdle and truncated count models - #8031

Merged
josef-pkt merged 2 commits into
statsmodels:mainfrom
josef-pkt:hurdle_count2
Dec 1, 2022
Merged

josef-pkt merged 2 commits into
statsmodels:mainfrom
josef-pkt:hurdle_count2

Conversation

@josef-pkt

Copy link
Copy Markdown
Member

follow up to #7973

I had left one change out of the PR, I merged too fast

new models still need a full review and improvements of docstrings

@josef-pkt

Copy link
Copy Markdown
Member Author

I forgot to add the new models to the rst docs.
So, I cannot check how they look like.

@josef-pkt

Copy link
Copy Markdown
Member Author

test failures because of incomplete renaming of option
TypeError: argument which == prob-main not handled

@josef-pkt

Copy link
Copy Markdown
Member Author

I had forgotten about this

see also #8359 (comment)

@josef-pkt

Copy link
Copy Markdown
Member Author

something wrong with docstring of new classes Hurdle and Truncated
the docstring is composed with interpolation but it does not show up in the rendered docs

e.g.
https://www.statsmodels.org/dev/generated/statsmodels.discrete.truncated_model.HurdleCountModel.html

@josef-pkt josef-pkt mentioned this pull request Nov 30, 2022
16 of 20 tasks
@josef-pkt

Copy link
Copy Markdown
Member Author

rebased and fixed class docstrings with string substitution

@josef-pkt

Copy link
Copy Markdown
Member Author

test error, azur fails, wrong which name

>           raise TypeError(
                "argument which == %s not handled" % which)
E           TypeError: argument which == prob-main not handled

aside: shouldn't this be ValueError

@josef-pkt

Copy link
Copy Markdown
Member Author

doc build failed, unrelated Error: Failed to install pandoc: The process 'sudo' failed with exit code 100

@josef-pkt
josef-pkt merged commit 8962c7f into statsmodels:main Dec 1, 2022
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.

1 participant