Skip to content

ENH: Zivot Andrews test - #6014

Merged
bashtage merged 2 commits into
statsmodels:masterfrom
bashtage:JimVaranelli-issue4746
Jul 25, 2019
Merged

bashtage merged 2 commits into
statsmodels:masterfrom
bashtage:JimVaranelli-issue4746

Conversation

@bashtage

@bashtage bashtage commented Jul 25, 2019 •

Copy link
Copy Markdown
Member
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.

Varanelli and others added 2 commits July 25, 2019 08:57
Clean and standardize contribution
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.04%) to 85.939% when pulling b20a635 on bashtage:JimVaranelli-issue4746 into 4b47737 on statsmodels:master.

@codecov

codecov Bot commented Jul 25, 2019

Copy link
Copy Markdown

Codecov Report

Merging #6014 into master will increase coverage by 0.02%.
The diff coverage is 95.62%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6014      +/-   ##
==========================================
+ Coverage   83.43%   83.45%   +0.02%     
==========================================
  Files         606      606              
  Lines       95441    95575     +134     
  Branches    10400    10409       +9     
==========================================
+ Hits        79628    79763     +135     
+ Misses      13445    13439       -6     
- Partials     2368     2373       +5
Impacted Files Coverage Δ
statsmodels/tsa/tests/test_stattools.py 99.03% <100%> (+0.07%) ⬆️
statsmodels/tools/validation/validation.py 98.55% <100%> (ø) ⬆️
statsmodels/tsa/stattools.py 90.17% <93.47%> (+1.73%) ⬆️

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 4b47737...b20a635. Read the comment docs.

1 similar comment
@codecov

codecov Bot commented Jul 25, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #6014 into master will increase coverage by 0.02%.
The diff coverage is 95.62%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6014      +/-   ##
==========================================
+ Coverage   83.43%   83.45%   +0.02%     
==========================================
  Files         606      606              
  Lines       95441    95575     +134     
  Branches    10400    10409       +9     
==========================================
+ Hits        79628    79763     +135     
+ Misses      13445    13439       -6     
- Partials     2368     2373       +5
Impacted Files Coverage Δ
statsmodels/tsa/tests/test_stattools.py 99.03% <100%> (+0.07%) ⬆️
statsmodels/tools/validation/validation.py 98.55% <100%> (ø) ⬆️
statsmodels/tsa/stattools.py 90.17% <93.47%> (+1.73%) ⬆️

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 4b47737...b20a635. Read the comment docs.

@bashtage

Copy link
Copy Markdown
Member Author

@JimVaranelli thanks for this.

@bashtage
bashtage merged commit 1f9bcba into statsmodels:master Jul 25, 2019
@bashtage
bashtage deleted the JimVaranelli-issue4746 branch July 25, 2019 08:43
@JimVaranelli

Copy link
Copy Markdown
Contributor

@bashtage @josef-pkt @ChadFulton Glad to help! Let me know if you need some help on other projects and I will assist where possible. On another note, I've added Leybourne-McCabe stationarity test to my github repo (https://github.com/JimVaranelli) and plan to add Phillips-Perron and DFGLS unit-root tests in the near future to support a manuscript currently under development for peer-review. Let me know if any of these is of general interest to the SM community and I will PR it. The most important one is probably PP since it is by far the most well-behaved test in very small samples. The LM is interesting since it has very low tool implementation coverage (only Matlab as far as I can tell). The DFGLS is the least interesting but is a low-effort add-on to ADF if that is a concern.

@bashtage

bashtage commented Aug 2, 2019

Copy link
Copy Markdown
Member Author

Leybourne-McCabe isn't available in Python, AFAICT, so that would expand the capabilities. My arch package has the other two, although these are welcome here as well. Ideally, any of these would follow the same pattern as the ZivotAndrews test to KISS for users.

@bashtage

bashtage commented Aug 2, 2019

Copy link
Copy Markdown
Member Author

Will try and get your White's Spec test in too.

@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.

3 participants