Skip to content

fix: correct parameter names in docstrings (prob_infl, bin_edges, pred_kwds, param_nums, mu1_low) - #9886

Merged
bashtage merged 1 commit into
statsmodels:mainfrom
eeshsaxena:fix/docstring-param-names
Jul 3, 2026
Merged

fix: correct parameter names in docstrings (prob_infl, bin_edges, pred_kwds, param_nums, mu1_low)#9886
bashtage merged 1 commit into
statsmodels:mainfrom
eeshsaxena:fix/docstring-param-names

Conversation

@eeshsaxena

Copy link
Copy Markdown
Contributor

Summary

Several docstring parameter names do not match the actual function signatures, causing confusion for users reading the API docs.

Fixes

File Wrong Correct Location
statsmodels/discrete/count_model.py prob_inlf prob_infl ZeroInflated*._predict_var docstring (3×)
statsmodels/discrete/diagnostic.py binedges bin_edges test_chisquare_prob docstring
statsmodels/base/_prediction_inference.py pred_kwargs pred_kwds get_prediction_linear/monotonic/delta docstrings (3×)
statsmodels/emplike/aft_el.py param_num param_nums AftResults.test_beta docstring
statsmodels/emplike/originregress.py param_num param_nums OriginResults.test_beta docstring
statsmodels/emplike/descriptive.py m1_low, m1_upp mu1_low, mu1_upp mv_mean_contour docstring

No logic changes - docstrings only.

- count_model.py: prob_inlf -> prob_infl in ZeroInflated*._predict_var (x3)
- diagnostic.py: binedges -> bin_edges in test_chisquare_prob
- _prediction_inference.py: pred_kwargs -> pred_kwds (x3)
- aft_el.py: param_num -> param_nums in AftResults.test_beta
- originregress.py: param_num -> param_nums in OriginResults.test_beta
- descriptive.py: m1_low/m1_upp -> mu1_low/mu1_upp in mv_mean_contour

@Aniketsy Aniketsy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eeshsaxena thanks for the changes, looks good 👍

@bashtage
bashtage merged commit 9a603f5 into statsmodels:main Jul 3, 2026
3 checks passed
@bashtage

bashtage commented Jul 3, 2026

Copy link
Copy Markdown
Member

Thanks.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants