1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
.. currentmodule:: statsmodels.tsa.tsatools
Time Series Analysis
====================
These are some of the helper functions for doing time series analysis. First
we can load some a some data from the US Macro Economy 1959:Q1 - 2009:Q3. ::
>>> data = sm.datasets.macrodata.load()
The macro dataset is a structured array. ::
>>> data = data.data[['year','quarter','realgdp','tbilrate','cpi','unemp']]
We can add a lag like so ::
>>> data = sm.tsa.add_lag(data, 'realgdp', lags=2)
TODO:
-scikits.timeseries
-link in to var docs
|