Skip to content

TST: Verify categorical is supported for MNLogit - #6009

Merged
bashtage merged 1 commit into
statsmodels:masterfrom
bashtage:pr-2601
Jul 24, 2019
Merged

bashtage merged 1 commit into
statsmodels:masterfrom
bashtage:pr-2601

Conversation

@bashtage

Copy link
Copy Markdown
Member

Add test for categorical endog in MNLogit

closes #2601

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.

Add test for categorical endog in MNLogit

closes statsmodels#2601
@codecov

codecov Bot commented Jul 24, 2019 •

Copy link
Copy Markdown

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6009      +/-   ##
==========================================
+ Coverage   83.41%   83.42%   +<.01%     
==========================================
  Files         606      606              
  Lines       95375    95408      +33     
  Branches    10396    10399       +3     
==========================================
+ Hits        79555    79592      +37     
+ Misses      13460    13447      -13     
- Partials     2360     2369       +9
Impacted Files Coverage Δ
statsmodels/discrete/discrete_model.py 88.27% <ø> (ø) ⬆️
statsmodels/discrete/tests/test_discrete.py 99.85% <100%> (ø) ⬆️
statsmodels/tsa/stattools.py 88.44% <0%> (-0.52%) ⬇️
statsmodels/sandbox/distributions/mv_normal.py 38.82% <0%> (ø) ⬆️
statsmodels/sandbox/regression/treewalkerclass.py 0% <0%> (ø) ⬆️
statsmodels/sandbox/stats/multicomp.py 46.93% <0%> (ø) ⬆️
statsmodels/stats/libqsturng/make_tbls.py 0% <0%> (ø) ⬆️
statsmodels/tsa/statespace/mlemodel.py 85.11% <0%> (ø) ⬆️
statsmodels/iolib/summary.py 58.15% <0%> (ø) ⬆️
statsmodels/tsa/tests/test_stattools.py 98.96% <0%> (+0.02%) ⬆️
... and 4 more

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 842e779...ae7312d. Read the comment docs.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.0007%) to 85.904% when pulling ae7312d on bashtage:pr-2601 into 842e779 on statsmodels:master.

@bashtage
bashtage merged commit 4a7f06d into statsmodels:master Jul 24, 2019
@bashtage
bashtage deleted the pr-2601 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: allow Categorical endog for multinomial

2 participants