Skip to content

Commit

Permalink
Merge pull request #3458 from bashtage/add-module-tags-to-docs
Browse files Browse the repository at this point in the history
DOC: Add module tags to docs
  • Loading branch information
josef-pkt committed Feb 8, 2017
2 parents 72e2673 + 4faad6c commit 75edeb6
Show file tree
Hide file tree
Showing 33 changed files with 179 additions and 82 deletions.
3 changes: 3 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ notebooks:
$(TOOLSPATH)$(NOTEBOOKBUILD) --execute=True --allow_errors=True

html:
# make directories for images
@echo "Make static directory for images"
mkdir -p $(BUILDDIR)/html/_static
# generate the examples rst files
@echo "Generating reST from examples folder"
#$(TOOLSPATH)$(EXAMPLEBUILD)
Expand Down
2 changes: 2 additions & 0 deletions docs/make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ if "%1" == "clean" (

if "%1" == "html" (
REM python %TOOLSPATH%/%EXAMPLEBUILD%
echo mkdir %BUILDDIR%\html\_static
mkdir %BUILDDIR%\html\_static
echo python %TOOLSPATH%/%NOTEBOOKBUILD% --execute=True --allow_errors=True
python %TOOLSPATH%/%NOTEBOOKBUILD% --execute=True --allow_errors=True
echo python %TOOLSPATH%/%DATASETBUILD%
Expand Down
1 change: 1 addition & 0 deletions docs/source/about.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.. module:: statsmodels
.. currentmodule:: statsmodels

*****************
Expand Down
2 changes: 2 additions & 0 deletions docs/source/anova.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ A more detailed example can be found here:
Module Reference
----------------

.. module:: statsmodels.stats.anova

.. autosummary::
:toctree: generated/

Expand Down
20 changes: 13 additions & 7 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,23 @@

# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest',
'sphinx.ext.intersphinx', 'sphinx.ext.todo',
# 'sphinx.ext.imgmath',
'sphinx.ext.pngmath', 'sphinx.ext.viewcode', 'sphinx.ext.autosummary',
extensions = ['sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.intersphinx',
'sphinx.ext.todo',
# 'sphinx.ext.mathjax', # One of mathjax, pngmath or imgmath
# 'sphinx.ext.imgmath'
'sphinx.ext.pngmath',
'sphinx.ext.viewcode',
'sphinx.ext.autosummary',
'sphinx.ext.inheritance_diagram',
'matplotlib.sphinxext.plot_directive',
'matplotlib.sphinxext.only_directives',
'IPython.sphinxext.ipython_console_highlighting',
'IPython.sphinxext.ipython_directive',
'github', # for GitHub links,
'numpydoc',
'numpydoc', # numpydoc or napoleon, but not both
# 'sphinx.ext.napoleon'
]

# Add any paths that contain templates here, relative to this directory.
Expand All @@ -52,7 +58,7 @@

# General information about the project.
project = u'statsmodels'
copyright = u'2009-2016, Josef Perktold, Skipper Seabold, Jonathan Taylor, statsmodels-developers'
copyright = u'2009-2017, Josef Perktold, Skipper Seabold, Jonathan Taylor, statsmodels-developers'


autosummary_generate = True
Expand Down Expand Up @@ -264,7 +270,7 @@
epub_title = u'statsmodels'
epub_author = u'Josef Perktold, Skipper Seabold'
epub_publisher = u'Josef Perktold, Skipper Seabold'
epub_copyright = u'2009-2016, Josef Perktold, Skipper Seabold, Jonathan Taylor, statsmodels-developers'
epub_copyright = u'2009-2017, Josef Perktold, Skipper Seabold, Jonathan Taylor, statsmodels-developers'

# The language of the text. It defaults to the language option
# or en if the language is not set.
Expand Down
1 change: 1 addition & 0 deletions docs/source/contingency_tables.rst
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ methods and attributes.
Module Reference
----------------

.. module:: statsmodels.stats.contingency_tables
.. currentmodule:: statsmodels.stats.contingency_tables

.. autosummary::
Expand Down
2 changes: 2 additions & 0 deletions docs/source/dev/internal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ These are the base classes for both the estimation models and the results.
They are not directly useful, but layout the structure of the subclasses and
define some common methods.

.. module:: statsmodels.base.model
.. currentmodule:: statsmodels.base.model

.. autosummary::
Expand All @@ -33,6 +34,7 @@ define some common methods.
ResultMixin
GenericLikelihoodModelResults

.. module:: statsmodels.stats.contrast
.. currentmodule:: statsmodels.stats.contrast

.. autosummary::
Expand Down
2 changes: 2 additions & 0 deletions docs/source/discretemod.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ General references for this class of models are::
Module Reference
----------------

.. module:: statsmodels.discrete.discrete_model

The specific model classes are:

.. autosummary::
Expand Down
4 changes: 4 additions & 0 deletions docs/source/distributions.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.. module:: statsmodels.sandbox.distributions
.. currentmodule:: statsmodels.sandbox.distributions

.. _distributions:
Expand All @@ -12,6 +13,7 @@ distributions.
Empirical Distributions
-----------------------

.. module:: statsmodels.distributions.empirical_distribution
.. currentmodule:: statsmodels.distributions.empirical_distribution

.. autosummary::
Expand All @@ -25,6 +27,7 @@ Distribution Extras
-------------------


.. module:: statsmodels.sandbox.distributions.extras
.. currentmodule:: statsmodels.sandbox.distributions.extras

*Skew Distributions*
Expand Down Expand Up @@ -65,6 +68,7 @@ distribution from a monotonic transformation, `TransfTwo_gen` can use hump-shape
or u-shaped transformation, such as abs or square. The remaining objects are
special cases.

.. module:: statsmodels.sandbox.distributions.transformed
.. currentmodule:: statsmodels.sandbox.distributions.transformed

.. autosummary::
Expand Down
3 changes: 3 additions & 0 deletions docs/source/duration.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.. module:: statsmodels.duration
.. currentmodule:: statsmodels.duration


Expand Down Expand Up @@ -199,6 +200,7 @@ References for Cox proportional hazards regression model::
Module Reference
----------------

.. module:: statsmodels.duration.survfunc
.. currentmodule:: statsmodels.duration.survfunc

The class for working with survival distributions is:
Expand All @@ -208,6 +210,7 @@ The class for working with survival distributions is:

SurvfuncRight

.. module:: statsmodels.duration.hazard_regression
.. currentmodule:: statsmodels.duration.hazard_regression

The proportional hazards regression model class is:
Expand Down
2 changes: 2 additions & 0 deletions docs/source/emplike.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ Examples
Module Reference
----------------

.. module:: statsmodels.emplike

.. autosummary::
:toctree: generated/

Expand Down
4 changes: 4 additions & 0 deletions docs/source/gee.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ References
Module Reference
----------------

.. module:: statsmodels.genmod.generalized_estimating_equations

Model Class
^^^^^^^^^^^

Expand All @@ -81,6 +83,7 @@ Dependence Structures

The dependence structures currently implemented are

.. module:: statsmodels.genmod.cov_struct
.. currentmodule:: statsmodels.genmod.cov_struct

.. autosummary::
Expand All @@ -99,6 +102,7 @@ Families

The distribution families are the same as for GLM, currently implemented are

.. module:: statsmodels.genmod.families.family
.. currentmodule:: statsmodels.genmod.families.family

.. autosummary::
Expand Down
4 changes: 4 additions & 0 deletions docs/source/glm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ References
Module Reference
----------------

.. module:: statsmodels.genmod.generalized_linear_model

Model Class
^^^^^^^^^^^

Expand All @@ -137,6 +139,7 @@ Families

The distribution families currently implemented are

.. module:: statsmodels.genmod.families.family
.. currentmodule:: statsmodels.genmod.families.family

.. autosummary::
Expand Down Expand Up @@ -166,6 +169,7 @@ available link functions can be obtained by

>>> sm.families.family.<familyname>.links

.. module:: statsmodels.genmod.families.links
.. currentmodule:: statsmodels.genmod.families.links

.. autosummary::
Expand Down
2 changes: 2 additions & 0 deletions docs/source/gmm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ only the moment conditions, `momcond` have to be defined.
Module Reference
""""""""""""""""

.. module:: statsmodels.sandbox.regression.gmm

.. autosummary::
:toctree: generated/

Expand Down
1 change: 1 addition & 0 deletions docs/source/imputation.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.. module:: statsmodels.imputation.mice
.. currentmodule:: statsmodels.imputation.mice

.. _imputation:
Expand Down
2 changes: 2 additions & 0 deletions docs/source/iolib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ Examples
Module Reference
----------------

.. module:: statsmodels.iolib


.. autosummary::
:toctree: generated/
Expand Down
4 changes: 4 additions & 0 deletions docs/source/miscmodels.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@



.. module:: statsmodels.miscmodels
.. currentmodule:: statsmodels.miscmodels


Expand Down Expand Up @@ -28,6 +30,7 @@ another example can be seen in the zero inflated Poisson model, miscmodels.count
Count Models :mod:`count`
--------------------------

.. module:: statsmodels.miscmodels.count
.. currentmodule:: statsmodels.miscmodels.count

.. autosummary::
Expand All @@ -45,6 +48,7 @@ method for the loglikelihood. All result statistics are inherited from the gener
likelihood model and result classes. The results have been checked against R for a
simple case.

.. module:: statsmodels.miscmodels.tmodel
.. currentmodule:: statsmodels.miscmodels.tmodel

.. autosummary::
Expand Down
2 changes: 2 additions & 0 deletions docs/source/mixed_linear.rst
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ users:
Module Reference
----------------

.. module:: statsmodels.regression.mixed_linear_model

The model class is:

.. autosummary::
Expand Down
8 changes: 6 additions & 2 deletions docs/source/multivariate.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.. module:: statsmodels.multivariate
.. currentmodule:: statsmodels.multivariate

.. _multivariate:
Expand All @@ -12,8 +13,11 @@ This section includes methods and algorithms from multivariate statistics.
Principal Component Analysis
----------------------------

.. module:: statsmodels.multivariate.pca
.. currentmodule:: statsmodels.multivariate.pca

.. autosummary::
:toctree: generated/

pca.PCA
pca.pca
PCA
pca
2 changes: 2 additions & 0 deletions docs/source/nonparametric.rst
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ References
Module Reference
----------------

.. module:: statsmodels.nonparametric

The public functions and classes are

.. autosummary::
Expand Down
4 changes: 4 additions & 0 deletions docs/source/regression.rst
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ wendog : array
Module Reference
----------------

.. module:: statsmodels.regression.linear_model

Model Classes
^^^^^^^^^^^^^

Expand All @@ -139,13 +141,15 @@ Model Classes
GLSAR
yule_walker

.. module:: statsmodels.regression.quantile_regression
.. currentmodule:: statsmodels.regression.quantile_regression

.. autosummary::
:toctree: generated/

QuantReg

.. module:: statsmodels.regression.recursive_ls
.. currentmodule:: statsmodels.regression.recursive_ls

.. autosummary::
Expand Down
5 changes: 5 additions & 0 deletions docs/source/rlm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,12 @@ References
Module Reference
----------------

.. module:: statsmodels.robust

Model Classes
^^^^^^^^^^^^^

.. module:: statsmodels.robust.robust_linear_model
.. currentmodule:: statsmodels.robust.robust_linear_model

.. autosummary::
Expand All @@ -71,6 +74,7 @@ Model Results
Norms
^^^^^

.. module:: statsmodels.robust.norms
.. currentmodule:: statsmodels.robust.norms

.. autosummary::
Expand All @@ -90,6 +94,7 @@ Norms
Scale
^^^^^

.. module:: statsmodels.robust.scale
.. currentmodule:: statsmodels.robust.scale

.. autosummary::
Expand Down
1 change: 1 addition & 0 deletions docs/source/rlm_techn1.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.. module:: statsmodels.rlm
.. currentmodule:: statsmodels.rlm


Expand Down

0 comments on commit 75edeb6

Please sign in to comment.