https://github.com/bambinos/formulae

Formulas for mixed-effects models in Python

https://github.com/bambinos/formulae

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 6 committers (16.7%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (16.2%) to scientific vocabulary

Keywords

bambi mixed-models python wilkinson-formulas

Keywords from Contributors

bayesian-inference bayesian-statistics regression-models statistical-analysis statistical-modeling
Last synced: 6 months ago · JSON representation

Repository

Formulas for mixed-effects models in Python

Basic Info
Statistics
  • Stars: 61
  • Watchers: 4
  • Forks: 14
  • Open Issues: 12
  • Releases: 18
Topics
bambi mixed-models python wilkinson-formulas
Created about 5 years ago · Last pushed about 1 year ago
Metadata Files
Readme Changelog License

README.md

PyPI version codecov Code style: black

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.7+) and the libraries numpy, scipy and pandas with versions specified in the requirements.txt 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 data argument only accepts objects of class pandas.DataFrame.
  • y ~ . is not implemented and won't be implemented in a first version. However, it is planned to be included in the future.

Owner

  • Name: bambinos
  • Login: bambinos
  • Kind: organization

GitHub Events

Total
  • Issues event: 2
  • Watch event: 4
  • Issue comment event: 2
  • Push event: 2
  • Pull request event: 1
  • Fork event: 1
Last Year
  • Issues event: 2
  • Watch event: 4
  • Issue comment event: 2
  • Push event: 2
  • Pull request event: 1
  • Fork event: 1

Committers

Last synced: 10 months ago

All Time
  • Total Commits: 233
  • Total Committers: 6
  • Avg Commits per committer: 38.833
  • Development Distribution Score (DDS): 0.03
Past Year
  • Commits: 5
  • Committers: 2
  • Avg Commits per committer: 2.5
  • Development Distribution Score (DDS): 0.2
Top Committers
Name Email Commits
Tomas Capretto t****o@g****m 226
teucer p****n@g****m 2
kddubey k****3@g****m 2
Will Dean 5****2 1
Filipe Fernandes o****f@g****m 1
David Pattinson d****n@w****u 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 30
  • Total pull requests: 86
  • Average time to close issues: 3 months
  • Average time to close pull requests: 4 days
  • Total issue authors: 16
  • Total pull request authors: 8
  • Average comments per issue: 2.9
  • Average comments per pull request: 0.98
  • Merged pull requests: 83
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 3
  • Average time to close issues: N/A
  • Average time to close pull requests: 3 minutes
  • Issue authors: 1
  • Pull request authors: 1
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • tomicapretto (12)
  • teucer (3)
  • drbenvincent (2)
  • FabricatiDiem (1)
  • twiecki (1)
  • aflaxman (1)
  • digicosmos86 (1)
  • jwdegee (1)
  • ipa (1)
  • markgoodhead (1)
  • alexjonesphd (1)
  • filthysocks (1)
  • gvelikova (1)
  • brandonwillard (1)
  • lt-brs (1)
Pull Request Authors
  • tomicapretto (81)
  • kddubey (4)
  • teucer (2)
  • wd60622 (1)
  • ocefpaf (1)
  • davipatti (1)
  • ipa (1)
  • lt-brs (1)
Top Labels
Issue Labels
bug (4) enhancement (3) documentation (3)
Pull Request Labels

Packages

  • Total packages: 2
  • Total downloads:
    • pypi 36,188 last-month
  • Total docker downloads: 47
  • Total dependent packages: 2
    (may contain duplicates)
  • Total dependent repositories: 12
    (may contain duplicates)
  • Total versions: 40
  • Total maintainers: 2
pypi.org: formulae

Formulas for mixed-effects models in Python

  • Documentation: https://formulae.readthedocs.io/
  • License: MIT License Copyright (c) 2021 the developers of Bambi Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  • Latest release: 0.5.4
    published over 1 year ago
  • Versions: 27
  • Dependent Packages: 1
  • Dependent Repositories: 11
  • Downloads: 36,188 Last month
  • Docker Downloads: 47
Rankings
Downloads: 1.3%
Docker downloads count: 3.2%
Average: 3.4%
Dependent repos count: 4.4%
Dependent packages count: 4.8%
Maintainers (2)
Last synced: 7 months ago
conda-forge.org: formulae
  • Versions: 13
  • Dependent Packages: 1
  • Dependent Repositories: 1
Rankings
Dependent repos count: 24.4%
Dependent packages count: 29.0%
Average: 35.7%
Stargazers count: 43.5%
Forks count: 46.2%
Last synced: 6 months ago

Dependencies

.github/workflows/publish-docs.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite
  • peaceiris/actions-gh-pages v3 composite
  • r-lib/actions/setup-pandoc v1 composite
.github/workflows/publish-pypi.yml actions
  • actions/checkout v1 composite
  • actions/setup-python v1 composite
.github/workflows/test.yml actions
  • actions/checkout v2 composite
  • codecov/codecov-action v1 composite
  • conda-incubator/setup-miniconda v2 composite
pyproject.toml pypi
  • numpy >=1.16
  • pandas >=1.0.0
  • scipy >=1.5.4