Skip to content
Statsmodels: statistical modeling and econometrics in Python
Python AGS Script HTML R Stata Shell Other
Branch: master
Clone or download

Latest commit

bashtage Merge pull request #6556 from mloning/fix_wrap_prediction
BUG: fixes #6553, sliced predicted values according to predicted index
Latest commit c0e585d Feb 28, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github DOC: Update PR template Numpy guide link Aug 16, 2019
archive REF: move garch to archive/ Aug 2, 2019
docs better name, cleared output, pkg install for bayes est sarimax Feb 24, 2020
examples better name, cleared output, pkg install for bayes est sarimax Feb 24, 2020
statsmodels fixed numpy prediction output Feb 28, 2020
tools better name, cleared output, pkg install for bayes est sarimax Feb 24, 2020
.codacy.yml CLN/MAINT: Port non-diagnostic changes Jan 14, 2020
.gitattributes BLD: Start simplifying setup Sep 8, 2018
.gitignore ENH: Add CFA simulation smoother. Feb 5, 2020
.mailmap MAINT: Update mailmap. Oct 15, 2014
.pep8speaks.yml BLD/DOC: Add doc string check to doc build Jul 30, 2019
.travis.yml MAINT: Use travis cache and optimize build times Feb 5, 2020
CHANGES.md DOC: Switch to https where used Aug 23, 2018
CONTRIBUTING.rst DOC: Restructure the documentation Aug 27, 2019
COPYRIGHTS.txt DOC: Fix many spelling errors Jul 21, 2019
INSTALL.txt MAINT: Bump versions for 0.12 dev round Jan 25, 2020
LICENSE.txt DOC: Restructure the documentation Aug 27, 2019
MANIFEST.in DOC: Add a new logo Aug 29, 2019
README.rst DOC: Update test running instructions Dec 5, 2019
README_l1.txt Updated examples Oct 6, 2012
appveyor.yml MAINT: Bump versions for 0.12 dev round Jan 25, 2020
azure-pipelines.yml MAINT: Replace Python 3.5 with 3.8 on Azure Jan 25, 2020
codecov.yml MAINT: Clarify codecov Jan 13, 2020
github_deploy_key_statsmodels_statsmodels_github_io.enc Configure doctr Sep 18, 2018
lint.sh MAINT: Fix future warnings Jan 25, 2020
pyproject.toml BLD: Use pip on Azure Jan 27, 2020
requirements-dev.txt MAINT: Avoid calling depr code Feb 4, 2020
requirements.txt MAINT: Bump versions for 0.12 dev round Jan 25, 2020
setup.cfg BLD: Improve doc caching Feb 4, 2020
setup.py Merge pull request #6501 from ChadFulton/ss-cj Feb 21, 2020
tox.ini CI: condense back to just one .coveragerc file May 28, 2019
versioneer.py DOC: Fix many spelling errors Jul 21, 2019

README.rst

Travis Build Status Azure CI Build Status Appveyor Build Status Coveralls Coverage

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/version0.9.html

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 modle, 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 master 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

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://statsmodels.github.io/dev/test_notes.html

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

You can’t perform that action at this time.