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). Pushes to main continue to be distributed to test.pypi, so if you need the latest changes you can get them from test.pypi. In that case, you need to replace the third line in the code above with:

pip install -i https://test.pypi.org/simple/ mssm

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.

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.25-pp310-pypy310_pp73-win_amd64.whl (176.3 kB view details)

Uploaded PyPy Windows x86-64

mssm-0.1.25-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (214.5 kB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

mssm-0.1.25-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl (220.9 kB view details)

Uploaded PyPy manylinux: glibc 2.17+ i686

mssm-0.1.25-pp310-pypy310_pp73-macosx_10_9_x86_64.whl (190.1 kB view details)

Uploaded PyPy macOS 10.9+ x86-64

mssm-0.1.25-cp312-cp312-win_amd64.whl (176.4 kB view details)

Uploaded CPython 3.12 Windows x86-64

mssm-0.1.25-cp312-cp312-win32.whl (161.9 kB view details)

Uploaded CPython 3.12 Windows x86

mssm-0.1.25-cp312-cp312-musllinux_1_1_x86_64.whl (739.3 kB view details)

Uploaded CPython 3.12 musllinux: musl 1.1+ x86-64

mssm-0.1.25-cp312-cp312-musllinux_1_1_i686.whl (793.0 kB view details)

Uploaded CPython 3.12 musllinux: musl 1.1+ i686

mssm-0.1.25-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (221.4 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

mssm-0.1.25-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl (227.9 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ i686

mssm-0.1.25-cp312-cp312-macosx_10_9_x86_64.whl (195.4 kB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

mssm-0.1.25-cp311-cp311-win_amd64.whl (177.3 kB view details)

Uploaded CPython 3.11 Windows x86-64

mssm-0.1.25-cp311-cp311-win32.whl (162.5 kB view details)

Uploaded CPython 3.11 Windows x86

mssm-0.1.25-cp311-cp311-musllinux_1_1_x86_64.whl (739.9 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

mssm-0.1.25-cp311-cp311-musllinux_1_1_i686.whl (793.3 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.1+ i686

mssm-0.1.25-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (222.0 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

mssm-0.1.25-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl (227.9 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ i686

mssm-0.1.25-cp311-cp311-macosx_10_9_x86_64.whl (198.0 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

mssm-0.1.25-cp310-cp310-win_amd64.whl (176.4 kB view details)

Uploaded CPython 3.10 Windows x86-64

mssm-0.1.25-cp310-cp310-win32.whl (161.3 kB view details)

Uploaded CPython 3.10 Windows x86

mssm-0.1.25-cp310-cp310-musllinux_1_1_x86_64.whl (738.6 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

mssm-0.1.25-cp310-cp310-musllinux_1_1_i686.whl (792.1 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.1+ i686

mssm-0.1.25-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (220.9 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

mssm-0.1.25-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl (227.0 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ i686

mssm-0.1.25-cp310-cp310-macosx_10_9_x86_64.whl (196.6 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

File details

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

File metadata

File hashes

Hashes for mssm-0.1.25-pp310-pypy310_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 19469cabbc642b0513d9c2e1bf661002345256b0e9600051d4bba3a09097380e
MD5 909975a4079c368e0f0a5397a2843303
BLAKE2b-256 681fff15768280434d1ee5a82fdcc97fe2f969508216148609c57ca49a8c16bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.25-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0e6d515d0108647c0c00ae62093ba5f06ca94bdfdb5cb7141f0d988ba48e0a5a
MD5 c25bec6695d9919b8f66740b5c0a460f
BLAKE2b-256 1a52681e44db6ddfebdd9da8d8c2c9b00286276ab9e012b0dc60c9a42adcf1c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.25-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 758310c37504cd79cc44f1b42f5f55e1d7d70dfec92fb6b1fb6e76fa4256a51d
MD5 2af9d5c2fa503cf580a671d5c9f70b35
BLAKE2b-256 76a5881860f2376bb02c4c78cf771b197978b48265c2afdc077205ac19ee0ce4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.25-pp310-pypy310_pp73-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8bb0e8ee8e6153262e43e72b565aaf163ce011a62a6f3ebd94b6cafb980bdfe1
MD5 3aaba1381af7f15a2a9605fe7db53565
BLAKE2b-256 b430969475d090e25f7f110a2383d2769532e9bcaabbae1d7e385b6b31c75065

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mssm-0.1.25-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 176.4 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for mssm-0.1.25-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c3fbaf1bb945027286516e7ed6d04a00346c0341144e09bd5d7b1449afd7dc04
MD5 e7bbeb171c0e6dc058d2386f7786bc92
BLAKE2b-256 ea8cde66e4d8e78f639128a4a433476353f7c063f5994645dcca961b27a6bc13

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mssm-0.1.25-cp312-cp312-win32.whl
  • Upload date:
  • Size: 161.9 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for mssm-0.1.25-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 cf0b2fce074209c618b5656aea40cc2108dba83220d6ad7926582bd42e9dbc49
MD5 141efe431c6c438db40acf38e7c3d667
BLAKE2b-256 7925c06a68408c52e41cc6a96ff6c793b1687f9f1731c122092902965dc8d1b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.25-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 244dda87bbd935d5c7d9bbc31204889307c29a499a46f676d3e2c39e49b76878
MD5 94d2316f210615a05901fc0308acbaac
BLAKE2b-256 ae6d87ab7184b5224343f682cc61636b7c582982b7faed3195a08e490ac666c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.25-cp312-cp312-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 5c7a75d7c3ffab2935be0696f82cf7b12b2b07d34add66025430607390a4ba9c
MD5 03501df04d63ba8b4b93244a23560050
BLAKE2b-256 97a0bdd3f23cf0034750d53c17f6648016563a25e837e75eb79a5f0aaf9ed57c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.25-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a57afb32e7fe475d13d788798029b4507a239333ed336a79270a8fea30aacffd
MD5 3836fb4579ef8c0255842e020ea622b0
BLAKE2b-256 d84a06cf3d5f8f19b60344336bd5e1f77dd898ead943424257b8b061577722a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.25-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 313ae8abb84ee509fb4701979756c79b83ca47307158adecc29f0720cb6803b5
MD5 9e94224a23bc7b25c8eb963fdeba7236
BLAKE2b-256 d49bceaa381a943825ed580cde3c2c78926b56ce22911360b9f0256954bdf750

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.25-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 89ea2312a4e1798ba8980dadde450d8b9df7514184e99c19b1c14a8ac11f2223
MD5 f938cebee52c24b99742451459a8f90a
BLAKE2b-256 1f453f94852e21528ddab3696f85787486320770fdd2e8c5d48538481811dc85

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mssm-0.1.25-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 177.3 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for mssm-0.1.25-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fe201de2e2cd3fd258c20c78487f379858649727ab5168b5674fe32c5c11b95c
MD5 82f186c2e070f6a0303e9def74e4e4b9
BLAKE2b-256 016c125d79c29a57eca825a50e346b6115b285f80645f03292d5bb026d3b6b4b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mssm-0.1.25-cp311-cp311-win32.whl
  • Upload date:
  • Size: 162.5 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for mssm-0.1.25-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 f450eaded3cf27ffb5c397b9f79545453443c48559cb2fd1844ffa7381deedd2
MD5 3a1f84259d44dab09c01464f1711b0b7
BLAKE2b-256 821ba561399a8f865e48b09b1f1c053157c8575ef50874313e60c6f62525f724

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.25-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 e66c59fef7cc4207b1bda598d18eb114e403930fe0e83040136709575e64f549
MD5 014d57eae97aacc6ccc385de8f1f6568
BLAKE2b-256 55a848f4fe4abf3393ae88212a8f8a17058957aaa1dcbdd9584c1f1bf16039ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.25-cp311-cp311-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 695e042d0a61a3b2a1d7caaf9bf5294618f24db17ffc704d4287ae2b06982a71
MD5 05696bb8873aea949d31b5d5b277efa6
BLAKE2b-256 a4713523eaeacb12a59a14b7debe28d759dcff0723f0b72d1ea777d3238ced8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.25-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8a00f12983d359adaccf85deabf842d6c3623c51d48430346bc19436f02a8879
MD5 3de34b6c43b0f1bc0d7ffb6b84b82885
BLAKE2b-256 8d644036bee970cc62cf15b78dc64c2fcb2de48a8b8e7ae49f64db3c5d9b0a4c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.25-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 5f1e873b203f720393f119eff5d98ee41e48ec10dc554bd3b323e8fd045dcdcf
MD5 7bd666033c671f8636ff7278b1041cb7
BLAKE2b-256 b54e8b80f43826750f0f1f22db1b37f3ac0976add743688ba3ca12d232919edc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.25-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 914951eb1b1f16e4c0a7b04907a839bf0f59627a74a2718291350535ce32c2f7
MD5 b0d926e5fc2804c4e956d5a0c339b943
BLAKE2b-256 19ce00445637236813c0886d6c7437837f2fa590858dbfa6953a991462955821

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mssm-0.1.25-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 176.4 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for mssm-0.1.25-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7ac871e1b4d82211190ad3e0a8f7aab4dec62ca1f6b35db6cc72fffbaa84b624
MD5 85bc0fbed3faa557824ef8be1bc455a6
BLAKE2b-256 ac3d6a51b44c092bbb5ee63f865a4bdaf5212234289e5befc71b219fe980f6e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mssm-0.1.25-cp310-cp310-win32.whl
  • Upload date:
  • Size: 161.3 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for mssm-0.1.25-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7cde2ea04fa0cf986bd7b980ec83c640f8cf8db1697897ae6e3836d63c980265
MD5 a5e99b99426daf7f95c3ac8b93897059
BLAKE2b-256 92867cce43cdc1331926600f9d07ace2e93d7ac1e7fb5311c1d2725f5d04baaf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.25-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 d21e86eb7f90cbc9ef1b83209cbfbe40108f2de3a3972336dfc06a240a62bfc4
MD5 e2f4082ab0f64e9ece671ac9ffde8461
BLAKE2b-256 479bc66cff6715f5b7a3e2fa07decded0bcab83f5b287b1a617cd1d21336991d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.25-cp310-cp310-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 df5e9b1a8391d8f4e9b72ab3ecffd89ee5ff329ab56079e7bf70fc0ffe656fcc
MD5 4692cf240f07d400a9c9221d47cddc9b
BLAKE2b-256 29db314aabe59fd0afc23f494542c27de712724a74767f8226032c96cde85ed7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.25-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 54d0344df3622ff8db8f37dc33a5e69c00eba2f2ce2677f4bf336f5fe96d86af
MD5 63a28140ce3754f356f1bd24353951c2
BLAKE2b-256 0fc0d04cf11bde580ea3a2bdc46cf38b19804770884535f013d43712f382b8a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.25-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 c7451a39f0586eca6658efba3d7c7bd7933948536415a045a5578670d20aee9f
MD5 193925e3b90807ec127406e84074a25e
BLAKE2b-256 e4e7c498d2afef71ef37fc1c0e949ae9fee87423cd771b0dd931fe5ac77fa7bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.25-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 39a274ba29d69bb25a4beb06923c6726a28c9e0a57cf0d91e4ceb216a3b1c6dc
MD5 9eb95496634f5a336a5bf17ceb9a2400
BLAKE2b-256 1be2d73ee12401671423eca5eaf25f727a4595b69f740961184d6356b81b18ee

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