Skip to main content

lme-python

Native Python bindings for lme-rs, a Rust implementation of linear, generalized linear, and nonlinear mixed-effects models modeled after R's lme4 workflow.

Install

pip install lme-python

Published wheels are available for CPython 3.10 on Windows, macOS, and Linux; CI also builds and tests wheels from source on Python 3.10–3.13. The package imports as lme_python and uses Polars DataFrames.

Quick start

import lme_python
import polars as pl

data = pl.DataFrame(
    {
        "y": [10.0, 12.0, 13.0, 15.0, 9.0, 11.0, 14.0, 17.0, 8.0, 10.0, 12.0, 14.0],
        "x": [0.0, 1.0, 2.0, 3.0] * 3,
        "group": ["a"] * 4 + ["b"] * 4 + ["c"] * 4,
    }
)

fit = lme_python.lmer("y ~ x + (1 | group)", data=data, reml=True)
print(fit.summary())
print(fit.predict(data))

The bindings also expose GLMMs (glmer), nonlinear mixed models (nlmer), prediction and simulation, profile and bootstrap confidence intervals, grouped cross-validation, contrasts, Type I/II/III ANOVA, and LMM estimated marginal means with reference-grid pairwise comparisons.

Documentation

Development

Contributor setup, validation commands, and release policy live in the repository's CONTRIBUTING.md. The automated task consumer:smoke gate builds an isolated wheel, installs it into a clean environment, and runs the portable examples against that installed artifact. License-File: THIRD_PARTY_NOTICES.md License-File: RELINKING.md License-File: Apache-2.0.txt License-File: BSD-3-Clause-OpenBLAS.txt License-File: GPL-2.0-or-later.txt License-File: LGPL-2.1-only.txt License-File: Intel-Simplified-Software-License.txt

Download files

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

Source Distribution

lme_python-0.2.2.tar.gz (1.3 MB view details)

Uploaded Source

Built Distributions

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

lme_python-0.2.2-cp310-cp310-win_amd64.whl (21.4 MB view details)

Uploaded CPython 3.10Windows x86-64

lme_python-0.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

lme_python-0.2.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (6.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

lme_python-0.2.2-cp310-cp310-macosx_11_0_arm64.whl (5.3 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

lme_python-0.2.2-cp310-cp310-macosx_10_12_x86_64.whl (5.5 MB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

File details

Details for the file lme_python-0.2.2.tar.gz.

File metadata

  • Download URL: lme_python-0.2.2.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for lme_python-0.2.2.tar.gz
Algorithm Hash digest
SHA256 2c94aeeaa6677ce9b827b44ca81f176534758ed049a3789f1a387c6c559e1d17
MD5 8349aa7cd2df5807c16b653f4a13beaf
BLAKE2b-256 dacb245d4db67071491643710bfd1a1254dd81f2aedfb99abae3c9f3c01d7e54

See more details on using hashes here.

Provenance

The following attestation bundles were made for lme_python-0.2.2.tar.gz:

Publisher: python-release.yml on x4g4p3x/lme-rs

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

File details

Details for the file lme_python-0.2.2-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: lme_python-0.2.2-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 21.4 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for lme_python-0.2.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 421c84cc9ea8c92265d071346d6d5aff7d13c3e865060ffab084952f99da35a5
MD5 5fcc296277291a182f8630890f15a5ec
BLAKE2b-256 f6a1a409336b8b3d2d833f55958211b8b35f277bd145fc32400497f389007e4a

See more details on using hashes here.

Provenance

The following attestation bundles were made for lme_python-0.2.2-cp310-cp310-win_amd64.whl:

Publisher: python-release.yml on x4g4p3x/lme-rs

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

File details

Details for the file lme_python-0.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for lme_python-0.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ffdb418deb7d10b672505123159697e2d51a0649e60cc065243297f30a509198
MD5 528cdd39f2299c9bfd4d63061c324362
BLAKE2b-256 bfa04283290a2694b835ba2c9ed46890fff86f050134267626020045af2f1b46

See more details on using hashes here.

Provenance

The following attestation bundles were made for lme_python-0.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: python-release.yml on x4g4p3x/lme-rs

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

File details

Details for the file lme_python-0.2.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for lme_python-0.2.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a7e670c3cea53c5ef6455d32cdfb991fbc47d1c0a6c50b3046bbd3610a336065
MD5 da440d67055ab219d6b6987d80ffff56
BLAKE2b-256 ed73c572f7d779f5aca0f595a3a0daef50f1d3c51e4d8c350615de92d820979a

See more details on using hashes here.

Provenance

The following attestation bundles were made for lme_python-0.2.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: python-release.yml on x4g4p3x/lme-rs

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

File details

Details for the file lme_python-0.2.2-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lme_python-0.2.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 320236ca62eabe4d73754c1b4d83060f3f1de04cfecca7fcf8465478d4385445
MD5 3b9ea227dc9127f27e6bc30151371c24
BLAKE2b-256 faa136ab0008481434225ca11f180737d345beec7ce9c438ca930a44c282769a

See more details on using hashes here.

Provenance

The following attestation bundles were made for lme_python-0.2.2-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: python-release.yml on x4g4p3x/lme-rs

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

File details

Details for the file lme_python-0.2.2-cp310-cp310-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for lme_python-0.2.2-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 cca4ce1b2e911032eb9e6e2d4e72d41b60c0433e7fac856b4b783a9a4b983875
MD5 370eb7dfb14e224955c59b4f2aea001f
BLAKE2b-256 4a3b8f18673c978c9af6de9b1cd4af0c5f3a21ba0e0b0a48cedef831f329ab54

See more details on using hashes here.

Provenance

The following attestation bundles were made for lme_python-0.2.2-cp310-cp310-macosx_10_12_x86_64.whl:

Publisher: python-release.yml on x4g4p3x/lme-rs

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

Release history Release notifications | RSS feed

0.2.5

6 files

0.2.4

6 files

0.2.3

6 files

This release

0.2.2 This release

6 files

0.2.1

6 files

0.1.11

6 files

0.1.9

6 files

0.1.8

6 files

0.1.7

6 files

0.1.4

6 files

0.1.3

6 files

0.1.2

6 files

0.1.1

6 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page