formulae
formulae is a Python library that implements Wilkinson's formulas for mixed-effects models. The main difference with other implementations like Patsy or formulaic is that formulae can work with formulas describing a model with both common and group specific effects (a.k.a. fixed and random effects, respectively).
This package has been written to make it easier to specify models with group effects in Bambi, a package that makes it easy to work with Bayesian GLMMs in Python, but it could be used independently as a backend for another library. The approach in this library is to extend classical statistical formulas in a similar way than in R package lme4.
Installation
formulae requires a working Python interpreter (3.8+) and the libraries NumPy, SciPy and Pandas with versions specified in the pyproject.toml file.
Assuming a standard Python environment is installed on your machine (including pip), the latest release of formulae can be installed in one line using pip:
pip install formulae
Alternatively, if you want the development version of the package you can install from GitHub:
pip install git+https://github.com/bambinos/formulae.git
Documentation
The official documentation can be found here
Notes
- The
dataargument only accepts objects of classpandas.DataFrame. y ~ .is not implemented and won't be implemented in a first version. However, it is planned to be included in the future.
Metadata
Release files for formulae 0.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| formulae-0.8.0.tar.gz | 177.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| formulae-0.8.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 239.6 kB
Release files / formulae-0.8.0.tar.gz
| Download URL | formulae-0.8.0.tar.gz |
|---|---|
| Size | 177.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
153d8ec7bff4806de45caa8dadca8ea271274cff528cdbf4d286adf910d4bd6d
|
|
BLAKE2b-256 checksum How to use checksums |
72f1d147dda3a4d8b6a87f1e9bf81f0a8bc010084b94ee0de7b39804f339ce2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Release files / formulae-0.8.0-py3-none-any.whl
| Download URL | formulae-0.8.0-py3-none-any.whl |
|---|---|
| Size | 61.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3aac811cd0d66e2b68812965acc011f610f24afe693a1292df4782dce7049106
|
|
BLAKE2b-256 checksum How to use checksums |
36349cb7f076daa65e89b74229126dae1277261fcee917e92ee94d34a5f7c733
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|