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

Uploaded PyPy Windows x86-64

mssm-0.1.24-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (203.6 kB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

mssm-0.1.24-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl (211.0 kB view details)

Uploaded PyPy manylinux: glibc 2.17+ i686

mssm-0.1.24-pp310-pypy310_pp73-macosx_10_9_x86_64.whl (179.7 kB view details)

Uploaded PyPy macOS 10.9+ x86-64

mssm-0.1.24-cp312-cp312-win_amd64.whl (166.3 kB view details)

Uploaded CPython 3.12 Windows x86-64

mssm-0.1.24-cp312-cp312-win32.whl (152.7 kB view details)

Uploaded CPython 3.12 Windows x86

mssm-0.1.24-cp312-cp312-musllinux_1_1_x86_64.whl (729.6 kB view details)

Uploaded CPython 3.12 musllinux: musl 1.1+ x86-64

mssm-0.1.24-cp312-cp312-musllinux_1_1_i686.whl (783.7 kB view details)

Uploaded CPython 3.12 musllinux: musl 1.1+ i686

mssm-0.1.24-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (213.5 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

mssm-0.1.24-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl (217.3 kB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ i686

mssm-0.1.24-cp312-cp312-macosx_10_9_x86_64.whl (184.7 kB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

mssm-0.1.24-cp311-cp311-win_amd64.whl (167.3 kB view details)

Uploaded CPython 3.11 Windows x86-64

mssm-0.1.24-cp311-cp311-win32.whl (153.4 kB view details)

Uploaded CPython 3.11 Windows x86

mssm-0.1.24-cp311-cp311-musllinux_1_1_x86_64.whl (729.8 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

mssm-0.1.24-cp311-cp311-musllinux_1_1_i686.whl (784.1 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.1+ i686

mssm-0.1.24-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (213.5 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

mssm-0.1.24-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl (217.7 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ i686

mssm-0.1.24-cp311-cp311-macosx_10_9_x86_64.whl (186.8 kB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

mssm-0.1.24-cp310-cp310-win_amd64.whl (166.2 kB view details)

Uploaded CPython 3.10 Windows x86-64

mssm-0.1.24-cp310-cp310-win32.whl (152.2 kB view details)

Uploaded CPython 3.10 Windows x86

mssm-0.1.24-cp310-cp310-musllinux_1_1_x86_64.whl (728.8 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

mssm-0.1.24-cp310-cp310-musllinux_1_1_i686.whl (783.0 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.1+ i686

mssm-0.1.24-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (212.0 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

mssm-0.1.24-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl (216.8 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ i686

mssm-0.1.24-cp310-cp310-macosx_10_9_x86_64.whl (185.6 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

File details

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

File metadata

File hashes

Hashes for mssm-0.1.24-pp310-pypy310_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 7a605632e65483e706a5d003fba27500aba13f4024e3026155c15f057b965723
MD5 e4a34e75bead08c746b94a42a07afd69
BLAKE2b-256 a6473ede470d683a77009035d165694dbf0026baad49cd713dd153473ef4ec5f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.24-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 813ff97c06da0a20b2844ebc717246df24547695662e030901b79ab72c7969b4
MD5 96750c6b0d535e874c435fae81424a44
BLAKE2b-256 5d1fc45ce4d8ec7594665d821d0153ea0b5a65fbd64d2631fc460056a62a7da7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.24-pp310-pypy310_pp73-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 f76423c1f2d222895fdc8b86015178fb248086a47310c18daddf5770edcf1b99
MD5 56947ccd94404998e175902157e48e7a
BLAKE2b-256 b873d081216ab2e6b8206d0828e8e5bc069d160a3e325f85e47ac11b41dd5792

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.24-pp310-pypy310_pp73-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9677910e0053a4fb331e47f8c0acc6cb340f26542eaa2af1fe316fa75139427b
MD5 df285ff3f7d81e78acee3e38070e5c30
BLAKE2b-256 abe7251ca0952887652673457a3dd71516dcc8d94bc64effc9bd8ce0c1085c9f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mssm-0.1.24-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 166.3 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.24-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4e10a5582813abbb446b1501a11ff6c0a507880b85e6995abe531037a74d179a
MD5 e41d681c7c3a49f428f4e1c35acc9fd2
BLAKE2b-256 3838f04f5de3f2acd63dd06cdb294098582f7ad9d0d23e9f1a78222a26a1448a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mssm-0.1.24-cp312-cp312-win32.whl
  • Upload date:
  • Size: 152.7 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.24-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 5e485a2a79f9756904b29b1c04039681bc12b4197c7aa4d1809820bf1c2cb17b
MD5 32c065a0ce5e146277f07768533a862d
BLAKE2b-256 a5a718c3233f77293f463809f6712104b07075bcbab1f2b46ad64ba29a4236b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.24-cp312-cp312-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 b882a4e4b050962e6bb292286d412bb7641946f3bff0721b3a3f195e6345fc91
MD5 3115b89eb431cdc005bbca6da27a58d9
BLAKE2b-256 3e59f64746bd0e4b18748f24e12cace054f4ef28d977ea0e0eba0e3d3a1e3657

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.24-cp312-cp312-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 85c5bfd8fe8bb22943fbd326ad894ade753830bff7ca4dbf6d89c2ab9f7850a6
MD5 04d649a449a041fc669e0a6c48b74ff5
BLAKE2b-256 a0b153fa4e0948a9ca746be83d70a1f579143a72262a34ff6eb8a274dfc29fb4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.24-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e809aab3f5ef2368fcf1058be647590aad4ddb2926dd1bc819ec7f69e9964dc4
MD5 c2b574752523c6e7e020f0c8fe9a206a
BLAKE2b-256 81e8fef43b50d9836f0fc324e7e4df04d9d1942f2e95d4fc96c08e9f4020f17f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.24-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 4be963f1f230074d430e97217d3d0e2d7155a9e1ed8fc9e43b12528a04ec04ce
MD5 1082993beea1db4b5e527becd1c75fdc
BLAKE2b-256 6af983d6a4991d179722291e196504eb5620810322cf8f83e90e36387f3e2eaf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.24-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8b8e3de31f0233d5d7e67a754ce1c03e3477fb94dfc5e3b43969d676fd353a21
MD5 b388fe164a760e02255f91bd1e31ccec
BLAKE2b-256 0660f74ff1ba685b97461e4135272e4d8f3a9b168b9d0b0ff5c4fe7ba62be98d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mssm-0.1.24-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 167.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.24-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5e226bf4bc2851e02a1b2391f0148cf496b18f91949d704b626814de2b2e1018
MD5 39c8edcbe7dea842c03c5ca2fd1f059f
BLAKE2b-256 ab029e1cffdc56eb8537c84c86f111ac24a4b2aef47b7443b46fe79b2f960500

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mssm-0.1.24-cp311-cp311-win32.whl
  • Upload date:
  • Size: 153.4 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.24-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ae38fa08477f6f9df55db66a162a2329c9d4a7ff1626e95c6dd7b385eea06263
MD5 f8aa57e369e16ecd429af4f963eb8df7
BLAKE2b-256 90cd5e6040f9d442c3f660fd2568f0d221e3e394a2d96d97ff5c6deac4e06689

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.24-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 54f336d3babb40ac7e22d3320f6bcc638fd7cae2aacb6a65458854d5c8a63294
MD5 04ffe8a7bdfad70c279075b83be5e251
BLAKE2b-256 5c5e3302464afbe80de8a1ccfd4eae0d0fa63d9ef41ce7a8bf4c3bae70e403e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.24-cp311-cp311-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 c644f948245539b96b226b135491baae4e78d96efe155f4d1a6c8dda1612bdb3
MD5 11874334abc7a8a35a4760a2a2349c86
BLAKE2b-256 5b2221dfa3f3fa39e2d2ffbe0c776bf84df0e60bcf6cb78dce31fe564f3066eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.24-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1f43b627784ebe2054050adb5f7573b96a37d82c032b682b320445a3efce3cef
MD5 802d579a043c823df723545aebcee7c5
BLAKE2b-256 9da2db1db30dd795a59a42ecd9147be0478bef2e8a65e236055f7fe4af7b34b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.24-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 d01fab6e2c31c323ac1f7d70740ce339f35204f8d67ca111a7a718f5d2962cd4
MD5 48bf2c03d38f0f6bf4f86d62d50c47fd
BLAKE2b-256 6e22c3d43412fbe225dd107ff4ed7adad0c101cbc2ea4c0c2f8f131c5411305d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.24-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9b1dd155bce51e1cb6367a06e2326d5a2addbc9fad1ad73b17f744938b37fe0a
MD5 72fe3ec99af2ff951079ee740ffe164e
BLAKE2b-256 f6c14a03322f99dc5c57120b7883391044352b3fd872ae51e3a4cf440576ea3c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mssm-0.1.24-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 166.2 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.24-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c4a6eb9929e57ab38a8c62269b0eccce04d20626450002831c91a834456819fa
MD5 1e9e40d1eecd8bcba3aef5b1eb7880a5
BLAKE2b-256 7d9239a8bb3ce260e203aeb467fa803d583746638554cb25ec3df17a8971e167

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mssm-0.1.24-cp310-cp310-win32.whl
  • Upload date:
  • Size: 152.2 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.24-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 67ec58b219adbfa00049db2966a627ca84d923c3484d4ebb7cfe50bff2dd6732
MD5 2998194e707a4ce4f46898e52f372fe2
BLAKE2b-256 b7119da5584f9f210acb7c2051e2c01d2f7323b0ffdc314fa913800212363083

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.24-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 99e09fb53f17c5584cda903446de3182dd3a84b10db69154cf7a351e877466a4
MD5 281b3344ed33462d038bbf16ce837f66
BLAKE2b-256 c017946d4ccc109d535f27d34eaa658e360957c311e3313dfe2d018fce2a9e99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.24-cp310-cp310-musllinux_1_1_i686.whl
Algorithm Hash digest
SHA256 dcad7327ea10212a1825ef692b8d8cb7b7383f34edd9d978fe4d270a50b08de6
MD5 3babd16033acb599ec15c0c06e75eb9a
BLAKE2b-256 a78fd2a7d3c185fddf1c1a4492323efae2e179c6186059ca551e7af88d8eec8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.24-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f10420453b633b96380dc909837ed9b5ba9d7b6acf18416c22a0f92bed19b00d
MD5 c24ea35f6ac9897f7ec15093c3944c26
BLAKE2b-256 ea9dd4e27f9dcaa44644d0770aeb1cb0773f51809d0fc9f84d2f9681d5a58f40

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.24-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 e6294fece72f0dde4f5318615a1bd4b7adf9c8af32649c44556bf415332f6b26
MD5 956852f532ddb10d86e55044d655ef90
BLAKE2b-256 03c2f914db0fc9176cead429133a5939432a1c8bcacf26f07abebba841c585a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mssm-0.1.24-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b18113e310269ba6d7192d4b48093bf25df8d06398e6e153904547f602b11890
MD5 d3055a31fd0eacb09d1f842ce8b64da8
BLAKE2b-256 851650de172acc1a78d3a894599e932b430547c3c1e45b940d6c201755d1f9c7

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