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.9.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 | Provenance | Actions |
|---|---|---|---|---|
| formulae-0.9.0.tar.gz | 177.9 kB | Without provenance | Details for formulae-0.9.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| formulae-0.9.0-py3-none-any.whl | Python 3 | none | any | Details for formulae-0.9.0-py3-none-any.whl |
Total release size: 239.8 kB
Release files / formulae-0.9.0.tar.gz
| Download URL | formulae-0.9.0.tar.gz |
|---|---|
| Size | 177.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c44dcd1ae5b6dd310716b3c04d6b0f9ffda21731543ebf2a243a898151863850
|
|
BLAKE2b-256 checksum How to use checksums |
28203761ffc234f76362f11eafe0e27719f7618dcebbf05abd1b5835a84d7a0b
|
| 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.9.0-py3-none-any.whl
| Download URL | formulae-0.9.0-py3-none-any.whl |
|---|---|
| Size | 61.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ce540d2aa077a4fbfedeaace6c0a62d179e26b0506b906cb360fe417adc6294e
|
|
BLAKE2b-256 checksum How to use checksums |
148b34bdc7031718f660924985f0d7ec908721a80f36c2b4afd76e86fd19bae3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Security for formulae 0.9.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.