Not sure what's broken yet, but I was just messing around and noticed that this doesn't work. Why not? ``` python import datetime import statsmodels.api as sm import pandas def date_parser(date): date = date.split('/') date.insert(0,'1') date = map(int, date) return datetime.datetime(*tuple(date[::-1])) # requires recent pandas url = 'http://eagle1.american.edu/~js2796a/Monthly_Food_Indices.csv' dta = pandas.read_csv(url, skiprows=2, parse_dates=True, index_col=0, date_parser=date_parser) mod = sm.tsa.VAR(dta, freq='M') res = mod.fit(maxlags=1) res.llf res.cov_params() mod2 = sm.tsa.VAR(dta.values, freq='M') res2 = mod.fit(maxlags=1) res2.llf res2.cov_params() ```
Activity
wesm commentedon May 2, 2012
in the latter case,
cov_paramsis 42 x 42 which is the size of the flattened parameter matrix:so the lag-1 model has 42 coefficients. Whereas the results wrapper is trying to use this as the column and row labels:
josef-pkt commentedon Feb 17, 2013
We also still have the same problem with MNLogit.