Skip to main content

Toolbox for estimating Generalized Additive Mixed Models (GAMMs), Generalized Additive Mixed Models of Location Scale and Shape (GAMMLSS), and more general smooth models.

Project description

mssm: Mixed Sparse Smooth Models

GitHub CI Stable Docs codecov preprint

Description

[!NOTE] Our preprint detailing the algorithms implemented in the mssm toolbox is now available on arXiv.

mssm is a toolbox to estimate Generalized Additive Mixed Models (GAMMs), Generalized Additive Mixed Models of Location Scale and Shape (GAMMLSS), and more general (mixed) smooth models in the sense defined by Wood, Pya, & Säfken (2016). Approximate estimation (and automatic regularization) of the latter only requires users to provide the (gradient of) the log-likelihood. Furthermore, mssm is an excellent choice for the modeling of multi-level time-series data, often estimating additive models with separate smooths for thousands of levels in a couple of minutes.

Note: 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). Documentation is hosted here - together with a tutorial for mssm! Plotting code to visualize and validate mssm models is provided in this repository!

Installation

The easiest option is to install from pypi via pip. This can be achieved in two steps:

  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 complete both steps (after installing conda - see here for instructions), simply run:

conda create -n mssm_env python=3.13
conda activate mssm_env
pip install mssm[plot] # [plot] also installs ``mssmViz``

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 .

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 Distribution

mssm-1.1.2.tar.gz (3.2 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

mssm-1.1.2-cp313-cp313-win_amd64.whl (624.1 kB view details)

Uploaded CPython 3.13Windows x86-64

mssm-1.1.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (772.2 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

mssm-1.1.2-cp313-cp313-macosx_11_0_arm64.whl (659.9 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

mssm-1.1.2-cp313-cp313-macosx_10_13_x86_64.whl (696.3 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

mssm-1.1.2-cp312-cp312-win_amd64.whl (624.0 kB view details)

Uploaded CPython 3.12Windows x86-64

mssm-1.1.2-cp312-cp312-musllinux_1_2_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

mssm-1.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (772.7 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

mssm-1.1.2-cp312-cp312-macosx_11_0_arm64.whl (659.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

mssm-1.1.2-cp312-cp312-macosx_10_13_x86_64.whl (696.2 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

mssm-1.1.2-cp311-cp311-win_amd64.whl (620.4 kB view details)

Uploaded CPython 3.11Windows x86-64

mssm-1.1.2-cp311-cp311-musllinux_1_2_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

mssm-1.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (772.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

mssm-1.1.2-cp311-cp311-macosx_11_0_arm64.whl (658.8 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

mssm-1.1.2-cp311-cp311-macosx_10_9_x86_64.whl (694.5 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

mssm-1.1.2-cp310-cp310-win_amd64.whl (618.8 kB view details)

Uploaded CPython 3.10Windows x86-64

mssm-1.1.2-cp310-cp310-musllinux_1_2_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

mssm-1.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (768.1 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

mssm-1.1.2-cp310-cp310-macosx_11_0_arm64.whl (654.7 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

mssm-1.1.2-cp310-cp310-macosx_10_9_x86_64.whl (690.2 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

Details for the file mssm-1.1.2.tar.gz.

File metadata

  • Download URL: mssm-1.1.2.tar.gz
  • Upload date:
  • Size: 3.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mssm-1.1.2.tar.gz
Algorithm Hash digest
SHA256 1c4022f7219ff50f23f20b569910950068ee2e97d701510fb36b39e7e3eb58e7
MD5 6f6bb472291ae948865edfddc22a5a24
BLAKE2b-256 8fe614d2505ad36bf7e073aee8667899867bdfc081a4a0f14225b794ad5091b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for mssm-1.1.2.tar.gz:

Publisher: python-package.yml on JoKra1/mssm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mssm-1.1.2-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: mssm-1.1.2-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 624.1 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mssm-1.1.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 be7278292e620ff077a4a3508d575e84c4ad0527e6b3dacbc05f88e63d489556
MD5 5cd1c30735f0ae0fded66a6a9e29e6e1
BLAKE2b-256 5d752d55d8830d8119549ce11f965fef7cae62520075fb3de073bd889dc1a7c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for mssm-1.1.2-cp313-cp313-win_amd64.whl:

Publisher: python-package.yml on JoKra1/mssm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mssm-1.1.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mssm-1.1.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bd33713a7fb1606cecc22789b866958ac3f408c2d6940eb76642e577406237c2
MD5 2b3243ef41c16c23ffcf2ac7ee80e2d5
BLAKE2b-256 bb2b5de80bbb9478fa7b6d3fa876a47b3ca857f5ccafa16b30f6eb289b7d0de9

See more details on using hashes here.

Provenance

The following attestation bundles were made for mssm-1.1.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: python-package.yml on JoKra1/mssm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mssm-1.1.2-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mssm-1.1.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d5224f6e8b0c7c889b1de1ec0ba10056cb1afb9f6ecaa4ab5d7b832a7f10838c
MD5 e8705cf6e65a781d2c9158ad8ca85d17
BLAKE2b-256 f599623f23a77b492ce80d7c46e3f50bd4dfcdcd0d0f772ba8dcb0dad3340477

See more details on using hashes here.

Provenance

The following attestation bundles were made for mssm-1.1.2-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: python-package.yml on JoKra1/mssm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mssm-1.1.2-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for mssm-1.1.2-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 9b678d49af7494e55a36773bc711efa9df596a2758217facf0837dabba50f38b
MD5 9ae603d6d628d9f46bd0727207c3b8c0
BLAKE2b-256 284942a47d99109d7d3fe2a0a17c7eb1f1750f217f5f76bb0196cbcb290812b3

See more details on using hashes here.

Provenance

The following attestation bundles were made for mssm-1.1.2-cp313-cp313-macosx_10_13_x86_64.whl:

Publisher: python-package.yml on JoKra1/mssm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: mssm-1.1.2-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 624.0 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mssm-1.1.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4bd273af49659ec579dfc25ecdee2f975609af416b31cce2280904f7d01eb7c5
MD5 91b00a5eca220c664dfdaa1a6cbb5e04
BLAKE2b-256 44461148c393ef6b237e8434b530f8e98901a139fe9598441456dcf211b2ce14

See more details on using hashes here.

Provenance

The following attestation bundles were made for mssm-1.1.2-cp312-cp312-win_amd64.whl:

Publisher: python-package.yml on JoKra1/mssm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mssm-1.1.2-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for mssm-1.1.2-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a7f2d92c5a4d58ff2a8347f0e8af20c1c12828eb7e874a93e9055f6cbcda8411
MD5 ce19e6ccb569699e762294e0bf08ee1f
BLAKE2b-256 86913d64c0746d782b4c21fbd11f8a7e584c15dc81683c6746244dfb65282808

See more details on using hashes here.

Provenance

The following attestation bundles were made for mssm-1.1.2-cp312-cp312-musllinux_1_2_x86_64.whl:

Publisher: python-package.yml on JoKra1/mssm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for mssm-1.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d47cdee678e689a720af863539975c683b10bbba57f157df3bd6b945c7d4e552
MD5 db8295d932e8f0ac1a5e15ff04821d99
BLAKE2b-256 be699703e56747c003a497e7df17ba79c165e31934298cf7474ace0a412b7ab2

See more details on using hashes here.

Provenance

The following attestation bundles were made for mssm-1.1.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: python-package.yml on JoKra1/mssm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mssm-1.1.2-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mssm-1.1.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2288503be3f4f28440259d634f184766fddd0c0e7e84a0467c6520e7a831a1f0
MD5 bb0d85888d3368917b663f7bf4500a73
BLAKE2b-256 8bc4749f49ca09b2aef36105561cc764d68cb0de13859c4726502e50d36d1d2b

See more details on using hashes here.

Provenance

The following attestation bundles were made for mssm-1.1.2-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: python-package.yml on JoKra1/mssm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mssm-1.1.2-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for mssm-1.1.2-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 8aed42e8f7e3a835c8f0e5e2c1936064ab35200481ad36ecb7c95ce5a88c717e
MD5 4a0fa7d56216a9e562013088d7c27c2d
BLAKE2b-256 fb588a79819ceee0b30508cb8cee1b164ebb3a307a1b6aa76b0a58d3229b9884

See more details on using hashes here.

Provenance

The following attestation bundles were made for mssm-1.1.2-cp312-cp312-macosx_10_13_x86_64.whl:

Publisher: python-package.yml on JoKra1/mssm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: mssm-1.1.2-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 620.4 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mssm-1.1.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ba44f05446f9158c9573145ece82e4424f81b8fdfb634730746f9e19c4ef03d4
MD5 dad3e6a7653a1020811e21afb5ecca2c
BLAKE2b-256 c525cd5e3209aa911c8f0c3c393ba739d80b2afa9b0f1fbf4ae98688673e5a72

See more details on using hashes here.

Provenance

The following attestation bundles were made for mssm-1.1.2-cp311-cp311-win_amd64.whl:

Publisher: python-package.yml on JoKra1/mssm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mssm-1.1.2-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for mssm-1.1.2-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 1600a80291efd6568a8aa312c77077171dbee634ad8adfa756951230c9d8c927
MD5 80e7e9d7dcfed902632f1cd313b95691
BLAKE2b-256 96bd0914d7274a33dc8fd52010210d559e97d59c53fd92cedf56b9f2b099033f

See more details on using hashes here.

Provenance

The following attestation bundles were made for mssm-1.1.2-cp311-cp311-musllinux_1_2_x86_64.whl:

Publisher: python-package.yml on JoKra1/mssm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for mssm-1.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a6432113797b6fa84060c796e582c40f04d469a432305a763a27a322376c7eab
MD5 96d3ee80385e39271a9231eeb9e8dc7c
BLAKE2b-256 7de903add5bda046a368a58bac792bbf7ecc412e3743b23030798b2f2584c63b

See more details on using hashes here.

Provenance

The following attestation bundles were made for mssm-1.1.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: python-package.yml on JoKra1/mssm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mssm-1.1.2-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mssm-1.1.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 86ea734e930e3fa53659742479f97e4ea3f925ffb233c9d29238630c1235aedd
MD5 cb624f62b7133fc4d343c858a9badc57
BLAKE2b-256 f24960762799eaff5cfb1920184e07f4c159acc019f2bded4b07dd2445a2114b

See more details on using hashes here.

Provenance

The following attestation bundles were made for mssm-1.1.2-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: python-package.yml on JoKra1/mssm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for mssm-1.1.2-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 953518a20f67e51975dda3ea804e2f3dce2f5127d80166a65b03ab602c3645ca
MD5 b77e8f74850dcba027710d8a85ff6655
BLAKE2b-256 c6d0fc0538a145d2502c051df61d2e098175b99e7e3bde8a4e0ede61a3e32bde

See more details on using hashes here.

Provenance

The following attestation bundles were made for mssm-1.1.2-cp311-cp311-macosx_10_9_x86_64.whl:

Publisher: python-package.yml on JoKra1/mssm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: mssm-1.1.2-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 618.8 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mssm-1.1.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3b8a680cc07099994003bdef7ea1a8fff872dbd748f0b03c4ed6ec06fe86d5bc
MD5 2f3f6895e30ba08637dd7c13f85134f0
BLAKE2b-256 a9841d31e1e90aa90ef7821e626b1506e537a4be80165e79cec8df4766f15b66

See more details on using hashes here.

Provenance

The following attestation bundles were made for mssm-1.1.2-cp310-cp310-win_amd64.whl:

Publisher: python-package.yml on JoKra1/mssm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mssm-1.1.2-cp310-cp310-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for mssm-1.1.2-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 c9409e27c91e05750dcea28dbe28d132545559dca2857d3fd5ed4d2aed489ed4
MD5 77ca89639f535b737e699f74344ab492
BLAKE2b-256 6d4fe24df2eaf40b7ab831cc502b2cd8ae97b3fa95224e2ac358d5c4feaf2ff9

See more details on using hashes here.

Provenance

The following attestation bundles were made for mssm-1.1.2-cp310-cp310-musllinux_1_2_x86_64.whl:

Publisher: python-package.yml on JoKra1/mssm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for mssm-1.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7df15155b2bed168a00b471311e08189c809903f9c1a27c021e6992e2870482a
MD5 e7c9acfc96c666d686a6c15d53cbf638
BLAKE2b-256 76b7228ef98f48859687bdb128155b78324b0edfc7364de3f497fb5ab0c44731

See more details on using hashes here.

Provenance

The following attestation bundles were made for mssm-1.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: python-package.yml on JoKra1/mssm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mssm-1.1.2-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mssm-1.1.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e91215416b8a4ab31ecad44ba6d449c980faa3f38822147b58ca694904d51931
MD5 926cb7c73942aed87a2e610e2cd81816
BLAKE2b-256 f29e3ad81e7375bf66949c6bb4bfaef30950b265ed730a2d427f34352a399c51

See more details on using hashes here.

Provenance

The following attestation bundles were made for mssm-1.1.2-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: python-package.yml on JoKra1/mssm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for mssm-1.1.2-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 96b432ae30b43a9a9906c2fb63249b5b7778c12771bc19ccddf264ab2d1b4e9b
MD5 3300498b9a781d012d7909f716dca0f6
BLAKE2b-256 0c414d3540416c8a454778807c15e1cb5e4b8116844e1e7a24d24a8f99fa81df

See more details on using hashes here.

Provenance

The following attestation bundles were made for mssm-1.1.2-cp310-cp310-macosx_10_9_x86_64.whl:

Publisher: python-package.yml on JoKra1/mssm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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