Skip to content

Commit

Permalink
fix tsa import
Browse files Browse the repository at this point in the history
  • Loading branch information
natashawatkins committed May 12, 2017
1 parent 3ce6e63 commit 6b2321b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quantecon/estspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from __future__ import division, print_function
import numpy as np
from numpy.fft import fft
from statsmodels.api.tsa import AR
from statsmodels.api import tsa


def smooth(x, window_len=7, window='hanning'):
Expand Down Expand Up @@ -140,7 +140,7 @@ def ar_periodogram(x, window='hanning', window_len=7):
"""
# === run regression === #
results = AR(x).fit(maxlag=1, cov_type='HAC', cov_kwds={'maxlags':1})
results = tsa.AR(x).fit(maxlag=1, cov_type='HAC', cov_kwds={'maxlags':1})
e_hat = results.resid
phi = results.params[1]

Expand Down

0 comments on commit 6b2321b

Please # to comment.