No description
  • Python 92.6%
  • AGS Script 2.9%
  • Cython 1.6%
  • HTML 0.9%
  • R 0.7%
  • Other 1.2%
Find a file
Josef Perktold 6614975f44
Merge pull request #8919 from josef-pkt/multivariatels
ENH: add MultivariateLS
2023-12-15 14:44:51 -05:00
.github Bump actions/setup-python from 4 to 5 2023-12-11 12:46:57 +00:00
archive MAINT: Fix automatically documented issues 2022-04-24 08:26:27 +01:00
docs Merge pull request #8919 from josef-pkt/multivariatels 2023-12-15 14:44:51 -05:00
examples DOC: add example notebook 2023-12-15 13:19:35 -05:00
statsmodels Merge pull request #8919 from josef-pkt/multivariatels 2023-12-15 14:44:51 -05:00
tools MAINT: Use modern freq names 2023-12-12 17:37:13 +00:00
.codacy.yml MAINT: Use requirements 2022-04-04 09:36:08 +01:00
.gitattributes BLD: Start simplifying setup 2018-09-08 16:19:58 -04:00
.gitignore FUTURE: Fix pip pre failures 2023-12-08 10:17:30 +00:00
.mailmap MAINT: Update mailmap. 2014-10-15 11:35:55 -04:00
.pep8speaks.yml BLD/DOC: Add doc string check to doc build 2019-07-30 09:23:09 +01:00
azure-pipelines.yml Remove unnecessary command 2023-12-01 14:13:14 +00:00
CHANGES.md DOC: Switch to https where used 2018-08-23 17:24:34 +01:00
codecov.yml MAINT: Switch the primary branch name to main 2021-03-04 08:53:00 +00:00
CONTRIBUTING.rst MAINT: Remove appveyor and downscale travis 2020-12-19 23:07:52 +00:00
COPYRIGHTS.txt DOC: Fix many spelling errors 2019-07-21 08:50:15 +01:00
github_deploy_key_statsmodels_statsmodels_github_io.enc Configure doctr 2018-09-18 13:44:33 -05:00
INSTALL.txt Fix issues with cython pinning 2023-12-01 13:12:23 +00:00
LICENSE.txt DOC: Restructure the documentation 2019-08-27 21:39:17 +01:00
lint.sh REV: Revery linting target change 2023-10-28 15:42:34 +01:00
MANIFEST.in MAINT: Use requirements 2022-04-04 09:36:08 +01:00
pyproject.toml Bump setuptools 2023-12-01 13:28:21 +00:00
README.rst DOC: Add install instructions for nightly 2023-06-29 17:33:04 +01:00
README_l1.txt Updated examples 2012-10-05 21:31:33 -04:00
requirements-dev.txt Add pytest-cov 2023-12-06 10:58:37 +00:00
requirements-doc.txt DOC/REG: Improve documentation 2023-10-28 15:41:16 +01:00
requirements.txt Remove unnecessary packages 2023-12-01 13:41:45 +00:00
setup.cfg BUG: Correct diagnostics for changes in pandas 2023-12-13 18:44:08 +00:00
setup.py Relax tolerance and remove import 2023-12-01 15:00:04 +00:00

.. image:: docs/source/images/statsmodels-logo-v2-horizontal.svg
  :alt: Statsmodels logo

|PyPI Version| |Conda Version| |License| |Azure CI Build Status|
|Codecov Coverage| |Coveralls Coverage| |PyPI downloads| |Conda downloads|

About statsmodels
=================

statsmodels is a Python package that provides a complement to scipy for
statistical computations including descriptive statistics and estimation
and inference for statistical models.


Documentation
=============

The documentation for the latest release is at

https://www.statsmodels.org/stable/

The documentation for the development version is at

https://www.statsmodels.org/dev/

Recent improvements are highlighted in the release notes

https://www.statsmodels.org/stable/release/

Backups of documentation are available at https://statsmodels.github.io/stable/
and https://statsmodels.github.io/dev/.


Main Features
=============

* Linear regression models:

  - Ordinary least squares
  - Generalized least squares
  - Weighted least squares
  - Least squares with autoregressive errors
  - Quantile regression
  - Recursive least squares

* Mixed Linear Model with mixed effects and variance components
* GLM: Generalized linear models with support for all of the one-parameter
  exponential family distributions
* Bayesian Mixed GLM for Binomial and Poisson
* GEE: Generalized Estimating Equations for one-way clustered or longitudinal data
* Discrete models:

  - Logit and Probit
  - Multinomial logit (MNLogit)
  - Poisson and Generalized Poisson regression
  - Negative Binomial regression
  - Zero-Inflated Count models

* RLM: Robust linear models with support for several M-estimators.
* Time Series Analysis: models for time series analysis

  - Complete StateSpace modeling framework

    - Seasonal ARIMA and ARIMAX models
    - VARMA and VARMAX models
    - Dynamic Factor models
    - Unobserved Component models

  - Markov switching models (MSAR), also known as Hidden Markov Models (HMM)
  - Univariate time series analysis: AR, ARIMA
  - Vector autoregressive models, VAR and structural VAR
  - Vector error correction model, VECM
  - exponential smoothing, Holt-Winters
  - Hypothesis tests for time series: unit root, cointegration and others
  - Descriptive statistics and process models for time series analysis

* Survival analysis:

  - Proportional hazards regression (Cox models)
  - Survivor function estimation (Kaplan-Meier)
  - Cumulative incidence function estimation

* Multivariate:

  - Principal Component Analysis with missing data
  - Factor Analysis with rotation
  - MANOVA
  - Canonical Correlation

* Nonparametric statistics: Univariate and multivariate kernel density estimators
* Datasets: Datasets used for examples and in testing
* Statistics: a wide range of statistical tests

  - diagnostics and specification tests
  - goodness-of-fit and normality tests
  - functions for multiple testing
  - various additional statistical tests

* Imputation with MICE, regression on order statistic and Gaussian imputation
* Mediation analysis
* Graphics includes plot functions for visual analysis of data and model results

* I/O

  - Tools for reading Stata .dta files, but pandas has a more recent version
  - Table output to ascii, latex, and html

* Miscellaneous models
* Sandbox: statsmodels contains a sandbox folder with code in various stages of
  development and testing which is not considered "production ready".  This covers
  among others

  - Generalized method of moments (GMM) estimators
  - Kernel regression
  - Various extensions to scipy.stats.distributions
  - Panel data models
  - Information theoretic measures

How to get it
=============
The main branch on GitHub is the most up to date code

https://www.github.com/statsmodels/statsmodels

Source download of release tags are available on GitHub

https://github.com/statsmodels/statsmodels/tags

Binaries and source distributions are available from PyPi

https://pypi.org/project/statsmodels/

Binaries can be installed in Anaconda

conda install statsmodels


Getting the latest code
=======================

Installing the most recent nightly wheel
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The most recent nightly wheel can be installed using pip.

.. code:: bash

   python -m pip install -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple statsmodels --upgrade --use-deprecated=legacy-resolver

Installing from sources
~~~~~~~~~~~~~~~~~~~~~~~

See INSTALL.txt for requirements or see the documentation

https://statsmodels.github.io/dev/install.html

Contributing
============
Contributions in any form are welcome, including:

* Documentation improvements
* Additional tests
* New features to existing models
* New models

https://www.statsmodels.org/stable/dev/test_notes

for instructions on installing statsmodels in *editable* mode.

License
=======

Modified BSD (3-clause)

Discussion and Development
==========================

Discussions take place on the mailing list

https://groups.google.com/group/pystatsmodels

and in the issue tracker. We are very interested in feedback
about usability and suggestions for improvements.

Bug Reports
===========

Bug reports can be submitted to the issue tracker at

https://github.com/statsmodels/statsmodels/issues

.. |Azure CI Build Status| image:: https://dev.azure.com/statsmodels/statsmodels-testing/_apis/build/status/statsmodels.statsmodels?branchName=main
   :target: https://dev.azure.com/statsmodels/statsmodels-testing/_build/latest?definitionId=1&branchName=main
.. |Codecov Coverage| image:: https://codecov.io/gh/statsmodels/statsmodels/branch/main/graph/badge.svg
   :target: https://codecov.io/gh/statsmodels/statsmodels
.. |Coveralls Coverage| image:: https://coveralls.io/repos/github/statsmodels/statsmodels/badge.svg?branch=main
   :target: https://coveralls.io/github/statsmodels/statsmodels?branch=main
.. |PyPI downloads| image:: https://img.shields.io/pypi/dm/statsmodels?label=PyPI%20Downloads
   :alt: PyPI - Downloads
   :target: https://pypi.org/project/statsmodels/
.. |Conda downloads| image:: https://img.shields.io/conda/dn/conda-forge/statsmodels.svg?label=Conda%20downloads
   :target: https://anaconda.org/conda-forge/statsmodels/
.. |PyPI Version| image:: https://img.shields.io/pypi/v/statsmodels.svg
   :target: https://pypi.org/project/statsmodels/
.. |Conda Version| image:: https://anaconda.org/conda-forge/statsmodels/badges/version.svg
   :target: https://anaconda.org/conda-forge/statsmodels/
.. |License| image:: https://img.shields.io/pypi/l/statsmodels.svg
   :target: https://github.com/statsmodels/statsmodels/blob/main/LICENSE.txt