File: tsastats.rst.TXT

package info (click to toggle)
statsmodels 0.4.2-1.2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 19,676 kB
  • ctags: 10,337
  • sloc: python: 67,108; ansic: 300; makefile: 220; asm: 171
file content (22 lines) | stat: -rw-r--r-- 539 bytes parent folder | download | duplicates (4)
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