Skip to main content

Toolbox for estimating Generalized additive mixed models (GAMMs), semi-Markov-switching (sms) GAMMs, and Impulse response sms GAMMs.

Project description

mssm: Markov-switching Spline Models

Description

mssm is a toolbox to estimate Generalized Additive Mixed Models (GAMMs) semi Markov-switching GAMMs (sMs-GAMMs) and sMs Impulse Response GAMMs (sMs-IR-GAMMs). The main branch is updated frequently to reflect new developments. The stable branch should reflect the latest releases. If you don't need the newest functionality, you should install from the stable branch (see below for instructions).

Installation

The easiest option is to install from pypi via pip.

  1. Setup a conda environment with python > 3.10
  2. Install mssm via pip

The latest release of mssm can be installed from pypi. So to install mssm simply run:

conda create -n mssm_env python=3.10
conda activate mssm_env
pip install mssm
pip install matplotlib # Only needed for tutorials

The fourth line, installing matplotlib is only necessary if you want to run the tutorials. Note: pypi will only reflect releases (Basically, the state of the stable branch). If you urgently need a feature currently only available on the main branch, consider building from source.

Building from source

You can also build directly from source. This requires conda or an installation of eigen (setup.py then expects eigen in "usr/local/include/eigen3". This will probably not work on windows - the conda strategy should.). Once you have conda installed, install eigen from conda-forge. After cloning and navigating into the downloaded repository you can then install via:

pip install .

To get started

  • With GAMMs: Take a look at tutorial 1 in the tutorial folder.
  • With sms-IR-GAMMs: Take a look at tutorial 2.
  • With sms-GAMMs: Take a look at tutorial 3.

Contributing

Contributions are welcome! Feel free to open issues or make pull-requests to main. Some problems that could use work are listed below.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

mssm-0.1.31-pp310-pypy310_pp73-win_amd64.whl (197.7 kB view details)

Uploaded PyPy Windows x86-64

mssm-0.1.31-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (236.7 kB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

mssm-0.1.31-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl (243.8 kB view details)

Uploaded PyPy manylinux: glibc 2.17+ i686

mssm-0.1.31-pp310-pypy310_pp73-macosx_10_9_x86_64.whl (212.0 kB view details)

Uploaded PyPy macOS 10.9+ x86-64

mssm-0.1.31-cp312-cp312-win_amd64.whl (197.9 kB view details)

Uploaded CPython 3.12 Windows x86-64

mssm-0.1.31-cp312-cp312-win32.whl (180.7 kB view details)

Uploaded CPython 3.12 Windows x86

mssm-0.1.31-cp312-cp312-musllinux_1_1_x86_64.whl (762.0 kB view details)

Uploaded CPython 3.12 musllinux: musl 1.1+ x86-64

mssm-0.1.31-cp312-cp312-musllinux_1_1_i686.whl (815.9 kB view details)

Uploaded CPython 3.12 musllinux: musl 1.1+ i686

mssm-0.1.31-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (244.2 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

mssm-0.1.31-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl (250.8 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ i686

mssm-0.1.31-cp312-cp312-macosx_10_9_x86_64.whl (216.8 kB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

mssm-0.1.31-cp311-cp311-win_amd64.whl (198.7 kB view details)

Uploaded CPython 3.11 Windows x86-64

mssm-0.1.31-cp311-cp311-win32.whl (181.3 kB view details)

Uploaded CPython 3.11 Windows x86

mssm-0.1.31-cp311-cp311-musllinux_1_1_x86_64.whl (762.4 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

mssm-0.1.31-cp311-cp311-musllinux_1_1_i686.whl (816.3 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.1+ i686

mssm-0.1.31-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (244.3 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

mssm-0.1.31-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl (250.9 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ i686

mssm-0.1.31-cp311-cp311-macosx_10_9_x86_64.whl (219.6 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

mssm-0.1.31-cp310-cp310-win_amd64.whl (197.6 kB view details)

Uploaded CPython 3.10 Windows x86-64

mssm-0.1.31-cp310-cp310-win32.whl (180.3 kB view details)

Uploaded CPython 3.10 Windows x86

mssm-0.1.31-cp310-cp310-musllinux_1_1_x86_64.whl (761.0 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

mssm-0.1.31-cp310-cp310-musllinux_1_1_i686.whl (815.4 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.1+ i686

mssm-0.1.31-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (243.0 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

mssm-0.1.31-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl (249.4 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ i686

mssm-0.1.31-cp310-cp310-macosx_10_9_x86_64.whl (218.0 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

File details

Details for the file mssm-0.1.31-pp310-pypy310_pp73-win_amd64.whl.

File metadata

File hashes

Hashes for mssm-0.1.31-pp310-pypy310_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 739b64310d13f9bc518eab47d8546165ae06485fa2021a6ce4ca2dc130a28d34
MD5 38aa38c253f9cb9b124d923ba2a4944e
BLAKE2b-256 e7ed2771faffa5db723ac4b10c37585fb5878e7287b71558cb4d5d5126c3ff57

See more details on using hashes here.

File details

Details for the file mssm-0.1.31-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mssm-0.1.31-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d71b892d22077ee808ef1f7b9a6616ad5a87e716e1f90bd332cb2710595ed5a7
MD5 3f01cbf335a4e829217903e68aec99aa
BLAKE2b-256 2d563356dcf4e3fba56cf7f7c556c268c3fa7e48f6b4140a03c58928486b0f37

See more details on using hashes here.

File details

Details for the file mssm-0.1.31-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for mssm-0.1.31-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 6a5442c45e123f89d1d771a6688e597624b65b67f32c0f33bdffbba2dd3b111a
MD5 69f03fb4737ae2861b1e3fe75ced8faa
BLAKE2b-256 239a1396aa4c1484b2b2ae8ab4d849f5f97a8d02498b92ccfe161b85bdc6e2c4

See more details on using hashes here.

File details

Details for the file mssm-0.1.31-pp310-pypy310_pp73-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for mssm-0.1.31-pp310-pypy310_pp73-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 926e80a6f493668ef1af33ef9f4519e37692c87bfb4ca352612bd41f88352f81
MD5 6d185656065aac287fc182dd8f9e3e42
BLAKE2b-256 cfc8cde5ecf94639869bf2cca999ef18ecd55350dfef99fed638d4a970444f92

See more details on using hashes here.

File details

Details for the file mssm-0.1.31-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: mssm-0.1.31-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 197.9 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for mssm-0.1.31-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 17aa89d6d4985b6b39ca1eedce6e50b1c51bd43fba96ab7774690d1dc754e4bb
MD5 974123a38465b6e69b4fe8e9d7fa9fd8
BLAKE2b-256 24f74fc31f65b57f12ae6e5f3a39110f53a5eab98b78df33ed8c81caeb870f01

See more details on using hashes here.

File details

Details for the file mssm-0.1.31-cp312-cp312-win32.whl.

File metadata

  • Download URL: mssm-0.1.31-cp312-cp312-win32.whl
  • Upload date:
  • Size: 180.7 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for mssm-0.1.31-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 429802dd89fcb52586fcc33a10eeb47bf50f6e00cb0a4767147863c378221620
MD5 4088f02b695ca5c1381315194a540363
BLAKE2b-256 f0ff18abf70124c16bd7226215cdd5891cc363d8cedb2f93ad198d8f2f84cc2c

See more details on using hashes here.

File details

Details for the file mssm-0.1.31-cp312-cp312-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for mssm-0.1.31-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 7240cfc2c72d49bd74a5993a15035eebccc230d84ed188a8afc5f5164d82a2f0
MD5 343aad2ddb7c3eff2d6f719fc206b233
BLAKE2b-256 db857e3abed80915a7482eea4e40237b0cebe35db4f5f358604473ba6c18d25c

See more details on using hashes here.

File details

Details for the file mssm-0.1.31-cp312-cp312-musllinux_1_1_i686.whl.

File metadata

File hashes

Hashes for mssm-0.1.31-cp312-cp312-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 74783ca5bb76aa4646663fa9f51798ef39d223bb72e9fd1d9894b498c022c856
MD5 7e44de1998876dd49c810294621bc531
BLAKE2b-256 0e54ac9e8feb377947d72aaf2a037df56013b67300185217bac0753b5451b245

See more details on using hashes here.

File details

Details for the file mssm-0.1.31-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mssm-0.1.31-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ed5bf51ed916b714ea2d7d216079c5d79c75383431fa8a934bf73b82b9da8f5d
MD5 c54bc1579fb35d587e156dca4fb9b85d
BLAKE2b-256 03d64c55fc6995495e51914da894ca688ac1a7ec20c212d61463dc775057e3f8

See more details on using hashes here.

File details

Details for the file mssm-0.1.31-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for mssm-0.1.31-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 2681102d62c11af05d23eaaea96a483f1100dfac771609df7f603764c1c2f32c
MD5 f612f1feda0a4a9720c545990d4154e9
BLAKE2b-256 6acc1dc6e76992d3c8f11719f0fa38cd40a097414c2bd33c3c87dc014991bea4

See more details on using hashes here.

File details

Details for the file mssm-0.1.31-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for mssm-0.1.31-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e856c413a57863d768d8ab52baa12777bcb562de5fb0abb67ffb86624b5880f9
MD5 28a17023365451e438e9d4bfa3c32690
BLAKE2b-256 81a1042b8f0d14d82ffd5d9eaefc4b3951a10189d8fe7ca3f954a527506fdc3a

See more details on using hashes here.

File details

Details for the file mssm-0.1.31-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: mssm-0.1.31-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 198.7 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for mssm-0.1.31-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 176db6e819721e194178df31cfb2bc46b32b9fc6eb7b16f6cae013bc7e98e122
MD5 33a0e3db5b3f06b03a9ec38f60fa94ad
BLAKE2b-256 54864508c0762de87fb3dff92c3e0fb5f1abcfbfd07acfc00708be1b79d26193

See more details on using hashes here.

File details

Details for the file mssm-0.1.31-cp311-cp311-win32.whl.

File metadata

  • Download URL: mssm-0.1.31-cp311-cp311-win32.whl
  • Upload date:
  • Size: 181.3 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for mssm-0.1.31-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 634a476cc7487fb7dccffd56465cb702592516a9b3aebf2aca566c027c0fa349
MD5 337fb841c49bd651a1aa3d278c312adb
BLAKE2b-256 792cf7fa92acd85a9cb7e5af69dffab32d2f8a01a981ae5cd260d6b7741067f6

See more details on using hashes here.

File details

Details for the file mssm-0.1.31-cp311-cp311-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for mssm-0.1.31-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 4ed3f881f8dfa082142169df05f9844eb3ef5aeca24651c62c2f818001fc0ad0
MD5 06aa729016cd590bdf9229ea91dc17a7
BLAKE2b-256 0323c70a256761b27e2144cdf50f7830f7ffd07956429314b36f31fad8bbc087

See more details on using hashes here.

File details

Details for the file mssm-0.1.31-cp311-cp311-musllinux_1_1_i686.whl.

File metadata

File hashes

Hashes for mssm-0.1.31-cp311-cp311-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 904f207efd02c22811dab63e8d84456dd56610b80ad27b3938a1709b5d374d3b
MD5 6f067bf190ca043ca2a1ca80a8d8fc2f
BLAKE2b-256 2d283732112e5e55b61038222696f8331057f0e366c8db0c29e0b35c5c0177f6

See more details on using hashes here.

File details

Details for the file mssm-0.1.31-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mssm-0.1.31-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 37e2de562935c12cab2706ceb919d41b6070570b24a553b686fc8562e791b10a
MD5 89e77edcd4d6bcddeb2e9e38a1b4fa0e
BLAKE2b-256 52f12211e154d03721e1b86615e24fe61e2a7ef6a8dbee936a2f011a71c6a8f8

See more details on using hashes here.

File details

Details for the file mssm-0.1.31-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for mssm-0.1.31-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 7df6568bf71328a90d60546228b6304a836e50d4b1f56cf0e39f247e4c1d5785
MD5 58d4c400ef2583c0cfd403fef3095c16
BLAKE2b-256 02405986ca676d8a6b4e040234d5dfaa48fed8dce1d2bb5bb597fc8df5668530

See more details on using hashes here.

File details

Details for the file mssm-0.1.31-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for mssm-0.1.31-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 73b119e369b5a04d22c04968b5eef4fcbc42b7459c3cc0e0d6d2bf8502461781
MD5 4352254d3caa4aa10859c316f69aa67a
BLAKE2b-256 5836db8f0a8cda8faf555fc52a4442d5079d47450cb15a2f172a79914c5faa6d

See more details on using hashes here.

File details

Details for the file mssm-0.1.31-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: mssm-0.1.31-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 197.6 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for mssm-0.1.31-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5bec60ce2a9fa4f485afd12df68f06023ec60ec9de31c8be5b104c4a91e0b740
MD5 b9eedcae33f17524a625742a0048c9f5
BLAKE2b-256 36524616899e5c30e662d3803d63120a45871e342c1d8e6f0ccbb7fc438417eb

See more details on using hashes here.

File details

Details for the file mssm-0.1.31-cp310-cp310-win32.whl.

File metadata

  • Download URL: mssm-0.1.31-cp310-cp310-win32.whl
  • Upload date:
  • Size: 180.3 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for mssm-0.1.31-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7c423c53ab9bad7ee4be245072e55410cc99ab5e899dfbc0c2dcecc6f4ebe8a9
MD5 29a07a6c4d21a9e6d5c71a3f6ca7c987
BLAKE2b-256 47b9e69e4445bfc165a6828d8196c51c033017418b48c3c118688cca9d6730ea

See more details on using hashes here.

File details

Details for the file mssm-0.1.31-cp310-cp310-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for mssm-0.1.31-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 d478568df7d3adb0e9cf44351563b2a18ed955cd5f366ff7da04eef715bc781c
MD5 37b857cead9b8ee28f052dd45fc4b47c
BLAKE2b-256 dcc731b0fb2012e9ffece63072ccbd861f85fb1df47b5e9155f2cea29ea76290

See more details on using hashes here.

File details

Details for the file mssm-0.1.31-cp310-cp310-musllinux_1_1_i686.whl.

File metadata

File hashes

Hashes for mssm-0.1.31-cp310-cp310-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 062d683f4b67a84b9bbf733e84e53716f57ca52d23bce747da60b3d89abb83f2
MD5 38ca5cb37ff50a29f638c292c1ce409f
BLAKE2b-256 b19e598712b2bbbec1917936160be63a007de77d188297f96c6030b19521717b

See more details on using hashes here.

File details

Details for the file mssm-0.1.31-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mssm-0.1.31-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d39cd028be0fc752d59e6fe95bd3a07cebdc6e52bb33f35146b20039ebed6e39
MD5 b9fc9a1f2866727540671a762bb38cb3
BLAKE2b-256 b6323df8843ae74f1936f5d8d6c661e28e18bf3070dd7ca5aeaa89f8236ae7a8

See more details on using hashes here.

File details

Details for the file mssm-0.1.31-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for mssm-0.1.31-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 eb413d39940ffe49f98d20fcfe750a9914012ddfad642000fcd9ff831eeb0a5d
MD5 ad8cb74ea2de5c07503d10dff3f784e4
BLAKE2b-256 3a8a2b8e98d1ad66a3446cd9803c5dc15de16a213a156edc60d341dcdb092665

See more details on using hashes here.

File details

Details for the file mssm-0.1.31-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for mssm-0.1.31-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ec62f82ef556fcdec1062e75a8e7767fb2f3b36a343f4b2e756cbe5b78e0a313
MD5 3f9703c30be1acc4aa95855723a0ff1e
BLAKE2b-256 90f1305950ea58c859b9e8a395978ed93141a11b160281974a972e9525358e49

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page