Skip to content

ENH: Set limit for number of endog variables when using formulas - #6017

Merged
bashtage merged 1 commit into
statsmodels:masterfrom
bashtage:set-k-endog
Jul 25, 2019
Merged

bashtage merged 1 commit into
statsmodels:masterfrom
bashtage:set-k-endog

Conversation

@bashtage

Copy link
Copy Markdown
Member

Add a class variable that limits the number of endog variables

closes #2733

Details

Notes:

  • It is essential that you add a test when making code changes. Tests are not
    needed for doc changes.
  • When adding a new function, test values should usually be verified in another package (e.g., R/SAS/Stata).
  • When fixing a bug, you must add a test that would produce the bug in master and
    then show that it is fixed with the new code.
  • New code additions must be well formatted. Changes should pass flake8. If on Linux or OSX, you can
    verify you changes are well formatted by running
    git diff upstream/master -u -- "*.py" | flake8 --diff --isolated
    
    assuming flake8 is installed. This command is also available on Windows
    using the Windows System for Linux once flake8 is installed in the
    local Linux environment. While passing this test is not required, it is good practice and it help
    improve code quality in statsmodels.
  • Docstring additions must render correctly, including escapes and LaTeX.

@pep8speaks

pep8speaks commented Jul 25, 2019 •

Copy link
Copy Markdown

Hello @bashtage! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 170:35: W504 line break after binary operator

Comment last updated at 2019-07-25 10:16:05 UTC

@bashtage
bashtage force-pushed the set-k-endog branch 2 times, most recently from 556f1a3 to ad2e57c Compare July 25, 2019 10:14
Add a class variable that limits the number of endog variables

closes statsmodels#2733
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.03%) to 85.907% when pulling 30a9d29 on bashtage:set-k-endog into 2b28619 on statsmodels:master.

@codecov

codecov Bot commented Jul 25, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #6017 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6017      +/-   ##
==========================================
+ Coverage   83.45%   83.46%   +<.01%     
==========================================
  Files         606      606              
  Lines       95586    95607      +21     
  Branches    10409    10411       +2     
==========================================
+ Hits        79774    79795      +21     
  Misses      13439    13439              
  Partials     2373     2373
Impacted Files Coverage Δ
statsmodels/multivariate/multivariate_ols.py 83.67% <100%> (+0.06%) ⬆️
statsmodels/genmod/generalized_linear_model.py 91.14% <100%> (+0.01%) ⬆️
statsmodels/genmod/tests/test_glm.py 99.49% <100%> (ø) ⬆️
statsmodels/base/model.py 86.91% <100%> (+0.07%) ⬆️
statsmodels/genmod/families/family.py 96.73% <100%> (+0.02%) ⬆️
statsmodels/multivariate/manova.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2b28619...30a9d29. Read the comment docs.

@bashtage
bashtage merged commit cef2e9e into statsmodels:master Jul 25, 2019
@bashtage
bashtage deleted the set-k-endog branch July 25, 2019 22:43
@bashtage bashtage added this to the 0.11 milestone Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

statsmodels.formula.api.logit raises error very hard to debug for newbies

3 participants