Bridging statistical cultures with some jazz
Project description
Bossanova
Unified mixed-effects modeling in Python. JAX + NumPy backends. R/lme4 parity.
Installation
uv add bossanova
or
pip install bossanova
Features
- One unified entry point —
model()handles linear, generalized, and mixed-effects models - R-style formulas —
y ~ x + (1|group),factor(),center(),scale() - Multiple inference strategies — asymptotic, bootstrap, permutation, cross-validation
- Marginal effects —
.explore()for estimated marginal means, slopes, and contrasts - JAX acceleration — automatic acceleration when JAX is available, NumPy fallback
- R parity — matches lme4/emmeans within f64 tolerance
Quick Example
from bossanova import model, load_dataset
df = load_dataset("sleepstudy")
# Fit a mixed model
m = model("Reaction ~ Days + (1 + Days | Subject)", data=df).fit()
m.params
# Perform bootstrapped parameter inference
m.infer(how='boot')
# Explore marginal effects
m.explore("Days")
m.effects
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 Distribution
bossanova-0.1.0.dev10.tar.gz
(564.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bossanova-0.1.0.dev10.tar.gz.
File metadata
- Download URL: bossanova-0.1.0.dev10.tar.gz
- Upload date:
- Size: 564.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
426525431e77cc3d781119408c1fa6694372f19339162a98b91f7dd064bfcf52
|
|
| MD5 |
7565e3da7c96bdb2489df02bce4a3825
|
|
| BLAKE2b-256 |
47f857a7925363b9489ad61d5a1d7b4d91fe3f093be3c32814f0bcf0455be0c4
|
File details
Details for the file bossanova-0.1.0.dev10-py3-none-any.whl.
File metadata
- Download URL: bossanova-0.1.0.dev10-py3-none-any.whl
- Upload date:
- Size: 702.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca547555d9cb0648be03ba324597a4b20b5423f4625fe0c366fea5b92adb0328
|
|
| MD5 |
78b11bfeccc5ab672f2c3d4030ce699e
|
|
| BLAKE2b-256 |
7cec786f4c7446f7d5365c3368a96377e5697c37730f0ded5171cc805a1c72ee
|