Skip to content

BUG: Fix t-test and f-test for multidim params - #6012

Merged
bashtage merged 1 commit into
statsmodels:masterfrom
bashtage:multivariate-params-t-test
Jul 25, 2019
Merged

bashtage merged 1 commit into
statsmodels:masterfrom
bashtage:multivariate-params-t-test

Conversation

@bashtage

@bashtage bashtage commented Jul 24, 2019 •

Copy link
Copy Markdown
Member

Fix t-test and f-test to also work with multidimensional parameters
as in MNLogit or VAR

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.

Comment thread statsmodels/base/model.py Resolved
Comment thread statsmodels/base/model.py Resolved
@bashtage
bashtage force-pushed the multivariate-params-t-test branch from 6c20721 to aba9226 Compare July 25, 2019 10:29
Fix t-test and f-test to also work with multidimensional parameters
as in MNLogit or VAR
@bashtage
bashtage force-pushed the multivariate-params-t-test branch from aba9226 to 471edba Compare July 25, 2019 10:32
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.002%) to 85.934% when pulling 471edba on bashtage:multivariate-params-t-test into 2b28619 on statsmodels:master.

@codecov

codecov Bot commented Jul 25, 2019

Copy link
Copy Markdown

Codecov Report

Merging #6012 into master will increase coverage by <.01%.
The diff coverage is 95.65%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6012      +/-   ##
==========================================
+ Coverage   83.45%   83.46%   +<.01%     
==========================================
  Files         606      606              
  Lines       95586    95602      +16     
  Branches    10409    10409              
==========================================
+ Hits        79774    79790      +16     
  Misses      13439    13439              
  Partials     2373     2373
Impacted Files Coverage Δ
statsmodels/discrete/tests/test_discrete.py 99.85% <100%> (ø) ⬆️
statsmodels/base/model.py 86.86% <85.71%> (+0.01%) ⬆️

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...471edba. Read the comment docs.

1 similar comment
@codecov

codecov Bot commented Jul 25, 2019

Copy link
Copy Markdown

Codecov Report

Merging #6012 into master will increase coverage by <.01%.
The diff coverage is 95.65%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6012      +/-   ##
==========================================
+ Coverage   83.45%   83.46%   +<.01%     
==========================================
  Files         606      606              
  Lines       95586    95602      +16     
  Branches    10409    10409              
==========================================
+ Hits        79774    79790      +16     
  Misses      13439    13439              
  Partials     2373     2373
Impacted Files Coverage Δ
statsmodels/discrete/tests/test_discrete.py 99.85% <100%> (ø) ⬆️
statsmodels/base/model.py 86.86% <85.71%> (+0.01%) ⬆️

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...471edba. Read the comment docs.

@bashtage
bashtage merged commit ea831e4 into statsmodels:master Jul 25, 2019
@bashtage
bashtage deleted the multivariate-params-t-test branch July 25, 2019 12:52
@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.

mnlogit t_test broken, patsy? BUG: f_test and t_test shape mismatch in MNLogit

3 participants