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
The documentation for the development version is at
Recent improvements are highlighted in the release notes
Backups of documentation are available at
Main Features
- Linear regression models:
- Mixed Linear Model with mixed effects and variance components
- GLM: Generalized linear models with support for all of the
- Bayesian Mixed GLM for Binomial and Poisson
- GEE: Generalized Estimating Equations for one-way clustered or
- Discrete models:
- RLM: Robust linear models with support for several M-estimators.
- Time Series Analysis: models for time series analysis
- Survival analysis:
- Multivariate:
- Nonparametric statistics: Univariate and multivariate kernel density
- Datasets: Datasets used for examples and in testing
- Statistics: a wide range of statistical tests
- Imputation with MICE, regression on order statistic and Gaussian
- Mediation analysis
- Graphics includes plot functions for visual analysis of data and model
- I/O
- Miscellaneous models
- Sandbox: statsmodels contains a sandbox folder with code in various
How to get it
The main branch on GitHub is the most up to date code
Source download of release tags are available on GitHub
Binaries and source distributions are available from PyPi
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.
`` 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
Contributing
Contributions in any form are welcome, including:
- Documentation improvements
- Additional tests
- New features to existing models
- New models
for instructions on installing statsmodels in editable mode.
License
Modified BSD (3-clause)
Discussion and Development
Discussions take place on the mailing list
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