Skip to content

Deprecate DynamicVAR and DynamicPanelVAR - #4539

Merged
josef-pkt merged 1 commit into
statsmodels:masterfrom
jengelman:master
Apr 25, 2018
Merged

josef-pkt merged 1 commit into
statsmodels:masterfrom
jengelman:master

Conversation

@jengelman

Copy link
Copy Markdown

Following #3866, added deprecation warnings (and a bit of PEP8 cleanup) to DynamicVAR and DynamicPanelVAR, since they no longer work after RollingOLS was removed in Pandas 0.21.0.

@josef-pkt

Copy link
Copy Markdown
Member

@bashtage

Copy link
Copy Markdown
Member

It works but is untested and not well written. I assume StateSpace is a better framework for these types of estimators

@jengelman

Copy link
Copy Markdown
Author

Whoops, did not notice that, thanks @bashtage! The current version also still uses Panels, which have been deprecated in Pandas for a while, and given that the statespace framework is a lot more feature-complete and has better test coverage, I'm still in favor of deprecation.

@josef-pkt

Copy link
Copy Markdown
Member

unit test for DynamicVAR were always missing.

If the statespace models are appropriate as alternative, then getting rid of the untested models is fine with me.

@coveralls

coveralls commented Apr 23, 2018 •

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.002%) to 82.768% when pulling 428ebf8 on jengelman:master into 7cbaa2e on statsmodels:master.

@codecov-io

Copy link
Copy Markdown

Codecov Report

Merging #4539 into master will decrease coverage by <.01%.
The diff coverage is 16.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4539      +/-   ##
==========================================
- Coverage   80.15%   80.15%   -0.01%     
==========================================
  Files         563      563              
  Lines       85238    85241       +3     
  Branches     9656     9656              
==========================================
+ Hits        68326    68327       +1     
- Misses      14685    14687       +2     
  Partials     2227     2227
Impacted Files Coverage Δ
statsmodels/tsa/vector_ar/dynamic.py 15.38% <16.66%> (+0.23%) ⬆️

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 7cbaa2e...428ebf8. Read the comment docs.

@jengelman

Copy link
Copy Markdown
Author

@josef-pkt Tests failing since I used DeprecationWarning instead of FutureWarning, and the new tests ignore the latter and not the former. Any preference on which one I should switch?

@josef-pkt

Copy link
Copy Markdown
Member

@jengelman Where do you see failing tests? appveyor and travis-ci are green.

I think DeprecationWarning is better, especially also because we are catching up with recent pandas, i.e. functionality is not the same as it was in the past..

@jengelman

Copy link
Copy Markdown
Author

@josef-pkt Whoops, those are just code coverage reports, never mind.

@josef-pkt
josef-pkt merged commit 3bfcdd2 into statsmodels:master Apr 25, 2018
@josef-pkt

Copy link
Copy Markdown
Member

merged
@jengelman Thanks for the PR

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.

5 participants