Skip to content

Commit

Permalink
DEPR: warn that VARResults.cov_params will become internally consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrockmendel committed Nov 27, 2018
1 parent d775833 commit 7fb4ecf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions statsmodels/tsa/vector_ar/var_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1327,6 +1327,11 @@ def cov_params(self):
Adjusted to be an unbiased estimator
Ref: Lütkepohl p.74-75
"""
import warnings
warnings.warn("For consistency with other statmsodels models, "
"starting in version 0.11.0 `VARResults.cov_params` "
"will be a method instead of a property.",
category=FutureWarning)
z = self.ys_lagged
return np.kron(scipy.linalg.inv(np.dot(z.T, z)), self.sigma_u)

Expand Down

0 comments on commit 7fb4ecf

Please sign in to comment.