Formulas for mixed-effects models in Python

Formulae

PyPI version codecov Code style: black

Formulae is a Python library that implements Wilkinson’s formulas for mixed-effects models. It was written to make group-specific effects convenient in Bambi, but it can also be used independently as a backend for another library. Formulae extends classical statistical formulas in a way inspired by R’s lme4.

Dependencies

Formulae requires Python 3.8 or later, plus the versions of NumPy, SciPy, and Pandas specified in pyproject.toml.

Installation

Install the latest release with pip:

pip install formulae

Or install the development version directly from GitHub:

pip install git+https://github.com/bambinos/formulae.git

Contributors

See the GitHub contributors page.

Contributing

We welcome contributions from interested individuals and groups. See the contributing guide for the project’s workflow and pull request checklist.

License

MIT License