Skip to content

Commit 3e932e1

Browse files
authored
Merge pull request statsmodels#6134 from bashtage/more-docs
DOC: Add missing functions from the API
2 parents 303f10e + c87c87d commit 3e932e1

File tree

6 files changed

+39
-6
lines changed

6 files changed

+39
-6
lines changed

docs/source/api.rst

+4-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ Multivariate Models
159159
~statsmodels.tsa.statespace.varmax.VARMAX
160160
~statsmodels.tsa.vector_ar.svar_model.SVAR
161161
~statsmodels.tsa.vector_ar.vecm.VECM
162-
~statsmodels.tsa.vector_ar.dynamic.DynamicVAR
163162
~statsmodels.tsa.statespace.structural.UnobservedComponents
164163

165164
Tools
@@ -175,6 +174,10 @@ Tools
175174
~statsmodels.tsa.tsatools.lagmat
176175
~statsmodels.tsa.tsatools.lagmat2ds
177176
~statsmodels.tsa.seasonal.seasonal_decompose
177+
~statsmodels.tsa.seasonal.STL
178+
~statsmodels.tsa.filters.bk_filter
179+
~statsmodels.tsa.filters.cf_filter
180+
~statsmodels.tsa.filters.hp_filter
178181

179182
Markov Switching
180183
~~~~~~~~~~~~~~~~

docs/source/importpaths.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ the namespace exploration features of IPython, Spyder, IDLE, etc.):
4444
'rainbow', 'rainbowplot', 'violinplot']
4545
4646
>>> dir(sm.tsa)
47-
['AR', 'ARMA', 'DynamicVAR', 'SVAR', 'VAR', '__builtins__', '__doc__',
47+
['AR', 'ARMA', 'SVAR', 'VAR', '__builtins__', '__doc__',
4848
'__file__', '__name__', '__package__', 'acf', 'acovf', 'add_lag',
4949
'add_trend', 'adfuller', 'ccf', 'ccovf', 'datetools', 'detrend',
5050
'filters', 'grangercausalitytests', 'interp', 'lagmat', 'lagmat2ds',

docs/source/imputation.rst

+8
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ Classes
4343
MICE
4444
MICEData
4545

46+
.. currentmodule:: statsmodels.imputation.bayes_mi
47+
48+
.. autosummary::
49+
:toctree: generated/
50+
51+
MI
52+
BayesGaussMI
53+
4654

4755
Implementation Details
4856
----------------------

docs/source/tsa.rst

+1
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ TSA Tools
262262
.. autosummary::
263263
:toctree: generated/
264264

265+
add_lag
265266
add_trend
266267
detrend
267268
lagmat

docs/source/vector_ar.rst

+20-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ explicitly:
6666
import numpy as np
6767
import pandas
6868
import statsmodels.api as sm
69-
from statsmodels.tsa.api import VAR, DynamicVAR
69+
from statsmodels.tsa.api import VAR
7070
mdata = sm.datasets.macrodata.load_pandas().data
7171
7272
# prepare the dates index
@@ -354,6 +354,25 @@ Reference
354354
NormalityTestResults
355355
WhitenessTestResults
356356

357+
.. _svar:
358+
359+
Structural Vector Autoregressions
360+
---------------------------------
361+
362+
There are a matching set of classes that handle some types of Structural VAR models.
363+
364+
.. module:: statsmodels.tsa.vector_ar.svar_model
365+
:synopsis: Structural vector autoregressions and related tools
366+
367+
.. currentmodule:: statsmodels.tsa.vector_ar.svar_model
368+
369+
.. autosummary::
370+
:toctree: generated/
371+
372+
SVAR
373+
SVARProcess
374+
SVARResults
375+
357376
.. _vecm:
358377

359378
Vector Error Correction Models (VECM)

statsmodels/tsa/api.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__all__ = ['AR', 'ARMA', 'ARIMA',
2-
'var', 'VAR', 'VECM', 'SVAR', 'DynamicVAR',
2+
'var', 'VAR', 'VECM', 'SVAR',
33
'filters',
44
'innovations',
55
'tsatools',
@@ -17,7 +17,8 @@
1717
'SARIMAX', 'UnobservedComponents', 'VARMAX', 'DynamicFactor',
1818
'MarkovRegression', 'MarkovAutoregression',
1919
'ExponentialSmoothing', 'SimpleExpSmoothing', 'Holt',
20-
'arma_generate_sample', 'ArmaProcess']
20+
'arma_generate_sample', 'ArmaProcess', 'STL',
21+
'bk_filter', 'cf_filter', 'hp_filter']
2122

2223
from .ar_model import AR
2324
from .arima_model import ARMA, ARIMA
@@ -26,7 +27,6 @@
2627
from .vector_ar.var_model import VAR
2728
from .vector_ar.vecm import VECM
2829
from .vector_ar.svar_model import SVAR
29-
from .vector_ar.dynamic import DynamicVAR
3030
from .filters import api as filters
3131
from . import tsatools
3232
from .tsatools import (add_trend, detrend, lagmat, lagmat2ds, add_lag)
@@ -50,3 +50,5 @@
5050
from .regime_switching.markov_autoregression import MarkovAutoregression
5151
from .holtwinters import ExponentialSmoothing, SimpleExpSmoothing, Holt
5252
from .innovations import api as innovations
53+
from .seasonal import STL
54+
from .filters import bk_filter, cf_filter, hp_filter

0 commit comments

Comments
 (0)