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
.
- Setup a conda environment with python > 3.10
- 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.). 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file mssm-0.1.23-pp310-pypy310_pp73-win_amd64.whl
.
File metadata
- Download URL: mssm-0.1.23-pp310-pypy310_pp73-win_amd64.whl
- Upload date:
- Size: 153.8 kB
- Tags: PyPy, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74cec0247dd820c2c38cce494b53a346e91a382d8c8f8d0fbc9a9245eb2b1d70 |
|
MD5 | f245d5081f1b961c95dc7ec49a9134a5 |
|
BLAKE2b-256 | d191778c9cf8897913239b13b4460fe66f18a0e3c15eb35f86075bf13beeabbc |
File details
Details for the file mssm-0.1.23-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: mssm-0.1.23-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 191.3 kB
- Tags: PyPy, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a3746bfad383e72feeb8cfa2e7fb498f02ae4b33572beb602835efef4944c7a |
|
MD5 | 6bb605d6e78ae5524a7b5b80e1272202 |
|
BLAKE2b-256 | 5421bec366c3680af6bd6aeb28640abbc32251c2430eb8c932b14b2e0cb49e13 |
File details
Details for the file mssm-0.1.23-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl
.
File metadata
- Download URL: mssm-0.1.23-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 198.7 kB
- Tags: PyPy, manylinux: glibc 2.17+ i686
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3708329cdb2972cc17993ea9bc73a58fce54c9493c6a99332e6681e928367fba |
|
MD5 | b45d2ddbd6f8a33c61ef22fc32a6a009 |
|
BLAKE2b-256 | 13b180a38d420fa80ae345230a86bd33bd211b206f665eda5ee6316d60a3faaf |
File details
Details for the file mssm-0.1.23-pp310-pypy310_pp73-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: mssm-0.1.23-pp310-pypy310_pp73-macosx_10_9_x86_64.whl
- Upload date:
- Size: 167.4 kB
- Tags: PyPy, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64c0b1796d43ca117f4b256e0e20da2518a7fe32debef3df553cefdc72a6b77d |
|
MD5 | 47237b7508b8c80a40405263d266ced3 |
|
BLAKE2b-256 | d09bd9ead68eb6cba0c2f0da0a4f2091e204ac3df245234554acdda5cc47da27 |
File details
Details for the file mssm-0.1.23-cp312-cp312-win_amd64.whl
.
File metadata
- Download URL: mssm-0.1.23-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 153.9 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0dbf47edef0ad66719d31578c9098ef2ff77cecf6babb8bc9247adc98b081115 |
|
MD5 | 68051aa1d9c53e33e7ad8fda5c3137bc |
|
BLAKE2b-256 | c9d6e383fae6a0dec1170553d3b7d257ed939d6514894bd89381f317abfa76bb |
File details
Details for the file mssm-0.1.23-cp312-cp312-win32.whl
.
File metadata
- Download URL: mssm-0.1.23-cp312-cp312-win32.whl
- Upload date:
- Size: 140.2 kB
- Tags: CPython 3.12, Windows x86
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4797328990bf49091c9faf46a051a25cead50c36fcbf2ecea8bb7037aa5057b6 |
|
MD5 | 5cd1a7a4a6537f563ad97630149487e4 |
|
BLAKE2b-256 | 776881081d1fdaabd8f8c5588b38e1a1e64144c569e11b6477f93ed51c413694 |
File details
Details for the file mssm-0.1.23-cp312-cp312-musllinux_1_1_x86_64.whl
.
File metadata
- Download URL: mssm-0.1.23-cp312-cp312-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 717.3 kB
- Tags: CPython 3.12, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fbb2d9423af1b188cfabbfd49abaacf489b6c1cfdbf6e52104724572c63d87c |
|
MD5 | f80ae56bb7f60ca9a30dd10d66e83fe2 |
|
BLAKE2b-256 | 862f778b1c81f67eea354eb2bd18dc02f0ea12d095f32b87521f5191272c80f0 |
File details
Details for the file mssm-0.1.23-cp312-cp312-musllinux_1_1_i686.whl
.
File metadata
- Download URL: mssm-0.1.23-cp312-cp312-musllinux_1_1_i686.whl
- Upload date:
- Size: 771.4 kB
- Tags: CPython 3.12, musllinux: musl 1.1+ i686
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32c32e555885ffdd51ab44b7c38fc7c88d9aa6e59579588d4f73f69ee48cf0dd |
|
MD5 | 47203e5faac33450c916eb9008227b6a |
|
BLAKE2b-256 | be6edb3f435c9709f157a81aa923f4bd846df0169826d1c16e997943b1f46702 |
File details
Details for the file mssm-0.1.23-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: mssm-0.1.23-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 201.2 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b2513d7d53fc34358d38a723553145327bc8b2fe486bc211a5698e841551db3 |
|
MD5 | b2e75d57e54db7c2ae35df637e0c71da |
|
BLAKE2b-256 | fe758df8675396ece1f63d272520ac565417a05731bcc715696526d6bf7b9889 |
File details
Details for the file mssm-0.1.23-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl
.
File metadata
- Download URL: mssm-0.1.23-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 205.0 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ i686
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb10af4c01a541f126cb85c18819f38ac67b7fbf5e99c73813d1437f7cd71d4a |
|
MD5 | 89878cd6c87edbbcdc80ffb421a3cfa1 |
|
BLAKE2b-256 | bc26534d73fd01b9624f5eef3361112c75957f939ae4ebb00784b4ac1b0e790e |
File details
Details for the file mssm-0.1.23-cp312-cp312-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: mssm-0.1.23-cp312-cp312-macosx_10_9_x86_64.whl
- Upload date:
- Size: 172.4 kB
- Tags: CPython 3.12, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c4902e815f35814e6546d4fb1edb0a61aa7afcaa8fdca6ccd8b8bda13ae6d5a |
|
MD5 | 54bcf8f3cda1793664bec6c327187db4 |
|
BLAKE2b-256 | 19513a97f9cae31514ceea8cad89fb8321f7fd965241c321ac1a51dca71eb040 |
File details
Details for the file mssm-0.1.23-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: mssm-0.1.23-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 154.8 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d52639fa05f3c607659a121e317b2951ec48a11a87b5543d2b1d4a75896de900 |
|
MD5 | 94f6d2eba328cdbcbcffe124336fa174 |
|
BLAKE2b-256 | 85d3c4b6af2c60c2da40de14d8ed57787a13578695c77dd83eea122c9e566998 |
File details
Details for the file mssm-0.1.23-cp311-cp311-win32.whl
.
File metadata
- Download URL: mssm-0.1.23-cp311-cp311-win32.whl
- Upload date:
- Size: 141.0 kB
- Tags: CPython 3.11, Windows x86
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4280427322e76aea9480ed86b47eb0fef6dc4ef345fd8d75ee05e5cabb2f4258 |
|
MD5 | 37b5ca32cc772c05bdc020389a9813ba |
|
BLAKE2b-256 | 44b6e92859e625c3c50bf75241e75caebc56f6563dd1971c8df8a937ef52ca0c |
File details
Details for the file mssm-0.1.23-cp311-cp311-musllinux_1_1_x86_64.whl
.
File metadata
- Download URL: mssm-0.1.23-cp311-cp311-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 717.4 kB
- Tags: CPython 3.11, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4d6765bbec43414b15fbd8a3b0f584a50ac277a56e95d6353725f4cc111eec2 |
|
MD5 | a91564f8cb7d61c876a535d4e427a63c |
|
BLAKE2b-256 | 6080af1518282178edf719cca7e0ea25e8f9fcdd1c013b41e218821dbbda18e1 |
File details
Details for the file mssm-0.1.23-cp311-cp311-musllinux_1_1_i686.whl
.
File metadata
- Download URL: mssm-0.1.23-cp311-cp311-musllinux_1_1_i686.whl
- Upload date:
- Size: 771.8 kB
- Tags: CPython 3.11, musllinux: musl 1.1+ i686
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da12e5b487ac53801a712bb437e680bb158ed71f3742d8211d825ddc3fa185fa |
|
MD5 | f3d2a9993cc47955813f6622f12c6b28 |
|
BLAKE2b-256 | 8747628dd72556445c134fde71f4fbb6395fe789e1446391f5fdeae139acbb21 |
File details
Details for the file mssm-0.1.23-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: mssm-0.1.23-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 201.2 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d5d69d3665e6669d662bf3bfb5638ce4334d138ef7169fabc19bb27c43bfe9b |
|
MD5 | a4642b875ac9b1514ade9d4a191a1011 |
|
BLAKE2b-256 | 04d177523a751edde447a7456ca11a7de506eba630a71153b7b09c86f52389b0 |
File details
Details for the file mssm-0.1.23-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
.
File metadata
- Download URL: mssm-0.1.23-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 205.4 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ i686
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcab5240e9198b619b98a6c119ab9c7b9edb451a5fa0369fd291aa8e44f5359e |
|
MD5 | 3a4ef205308d4fbb65aa0a11fa850ca2 |
|
BLAKE2b-256 | f911807c3a1403993a278e8b206becf32241064dd549da53c3b162b7ad037b30 |
File details
Details for the file mssm-0.1.23-cp311-cp311-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: mssm-0.1.23-cp311-cp311-macosx_10_9_x86_64.whl
- Upload date:
- Size: 174.5 kB
- Tags: CPython 3.11, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4a6db5c8a6612f8fe546c36cf777f566246f30b36c4a8735f9a9203ab5e77db |
|
MD5 | c4e1cca6bb9f7623032ccee181fbecd9 |
|
BLAKE2b-256 | b20a3819ca585a6a74b0f4382872aa2caf0e8bb936008e1900d661d317684619 |
File details
Details for the file mssm-0.1.23-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: mssm-0.1.23-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 153.8 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3d103acef2a54959c3e81d57d96b3c74d1274dfd41ebf0339489a384f7c7eae |
|
MD5 | be55caace16455d90e4b6b04e725491a |
|
BLAKE2b-256 | ec93a95bededf4ce9dd7117cdd0011b18afc3c12d0706c5b0a0db0040b6ca8b5 |
File details
Details for the file mssm-0.1.23-cp310-cp310-win32.whl
.
File metadata
- Download URL: mssm-0.1.23-cp310-cp310-win32.whl
- Upload date:
- Size: 139.7 kB
- Tags: CPython 3.10, Windows x86
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe88c71be50e952aaf381056b0b510ad2e063f62a1021df2a1f1e4e920103d2c |
|
MD5 | 4571ff43a4a3aa05327c78ea1227efde |
|
BLAKE2b-256 | 929b065cb7aef9cdf1cd3f2e1c87d28a37dcd959bddbaab232472044563229a1 |
File details
Details for the file mssm-0.1.23-cp310-cp310-musllinux_1_1_x86_64.whl
.
File metadata
- Download URL: mssm-0.1.23-cp310-cp310-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 716.5 kB
- Tags: CPython 3.10, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e2a8683ae0268ef14da0591e6b635eb910e3dbebe181ce30724ffaed9d4fabe |
|
MD5 | f1ace09b2534f305c6bd6584d806f7e7 |
|
BLAKE2b-256 | 54755104c8f4955adce1558bbdffedae74e8fb71ccc2652353d9a2e59056cc23 |
File details
Details for the file mssm-0.1.23-cp310-cp310-musllinux_1_1_i686.whl
.
File metadata
- Download URL: mssm-0.1.23-cp310-cp310-musllinux_1_1_i686.whl
- Upload date:
- Size: 770.7 kB
- Tags: CPython 3.10, musllinux: musl 1.1+ i686
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53335775d51486c7ff3cba0218816469ab84cce65365659fa85a5d3cf3bd5faf |
|
MD5 | 1a42e775aa7ccbcb65b1d0bc8171ff0b |
|
BLAKE2b-256 | 59ce9f834dfe33211f597fe0f1570a71ade2aae432438736b04ebc3f92805fb7 |
File details
Details for the file mssm-0.1.23-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: mssm-0.1.23-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 199.7 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54fe4faea73e8985f423bcbc466633cbfb6cf9a5e6178d753c79c4494df9ef06 |
|
MD5 | 624258eb0e0a97eca96635ea31e4bccd |
|
BLAKE2b-256 | 099520ccfe5da41b72743b47d9e5104aa4716e7175e3cec6cdb17fdd56f578d1 |
File details
Details for the file mssm-0.1.23-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
.
File metadata
- Download URL: mssm-0.1.23-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 204.5 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ i686
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2028598451aa62fd580cd74fdb842fe70b09d736828bdeea90d6f01a38980875 |
|
MD5 | 4c30f54640fa4a6fa0148c45c4ad602d |
|
BLAKE2b-256 | 2d89b4920522f845bd022a96b452269ded7954ca11539b8775e96f471a2ee988 |
File details
Details for the file mssm-0.1.23-cp310-cp310-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: mssm-0.1.23-cp310-cp310-macosx_10_9_x86_64.whl
- Upload date:
- Size: 173.3 kB
- Tags: CPython 3.10, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9acc28577a1b82f4c7b0a5daf1d447406a220b6e984479f97b7d873d2447052 |
|
MD5 | 6f45d458e457f49a27ac157a14bdb80a |
|
BLAKE2b-256 | 31007cb52fb450301118e6e7d2709d890fcb92782f5b1e4ab76a931f349ff200 |