Pymer4
Pymer4: Connecting R and Python for Linear Mixed Modeling - Published in JOSS (2018)
Science Score: 95.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
Found 6 DOI reference(s) in README and JOSS metadata -
✓Academic publication links
Links to: joss.theoj.org, zenodo.org -
✓Committers with academic emails
2 of 7 committers (28.6%) from academic institutions -
○Institutional organization owner
-
✓JOSS paper metadata
Published in Journal of Open Source Software
Keywords
Scientific Fields
Repository
All the convenience of lme4 in python
Basic Info
- Host: GitHub
- Owner: ejolly
- License: mit
- Language: Python
- Default Branch: main
- Homepage: http://eshinjolly.com/pymer4
- Size: 9.67 MB
Statistics
- Stars: 210
- Watchers: 6
- Forks: 28
- Open Issues: 9
- Releases: 16
Topics
Metadata Files
README.md
Pymer4: Generalized Linear & Multi-level Models in Python
pymer4 is a statistics library for estimating various regression models, multi-level models, and generalized-linear-mixed models in Python. Jealous of R's lovely model syntax by prefer to work in the scientific Python ecoysystem? This package has got you covered! pymer4 provides a clean interface that hides the back-and-forth code required when moving between R and Python. This is accomplished using rpy2 to interface between langauges.
Check out the documentation here
```python from pymer4.models import lm, lmer from pymer4 import load_dataset('sleep')
sleep = load_dataset('sleep')
Linear regression
ols = lm('Reaction ~ Days', data=sleep) ols.fit()
Multi-level model
lmm = lmer('Reaction ~ Days + (Days | Subject)', data=sleep) lmm.fit() ```
Why?
The scientific Python ecosystem has tons of fantastic libraries for data-analysis and statistical modeling such as statsmodels, pingouin, scikit-learn, and bambi for bayesian models to name a few. However, Python still sorely lacks a unified formula-based modeling interface that rivals what's available in R (and the tidyverse) for frequentist statistics. This makes it frustrating for beginners and advanced Python analysts-alike to jump between different tools in order to accomplish a single task. So, rather than completely reinvent the wheel, pymer4 aims to bring the best R's robust modeling capabilities to Python for the most common General(ized)-Linear-(Mixed)-Modeling (GLMMs) needs in the social and behavioral sciences.
At the same time, pymer4 includes numerous quality-of-life features for common tasks you're likely to do when working with models (e.g. automatically calculated fit statistics, residuals, p-values for mixed-models, bootstrapped confidence-intervals, random-effects deviances, etc). By bringing together functionality spread across several popular R tools, we've aimed for intuitive-usability. pymer4 also notably builds on top of the polars Dataframe library rather than pandas. This keeps code simple, fast, and efficient, while opening the door for enhanced future functionality.
Citing
If you use pymer4 in your own work, please cite:
Jolly, (2018). Pymer4: Connecting R and Python for Linear Mixed Modeling. Journal of Open Source Software, 3(31), 862, https://doi.org/10.21105/joss.00862
Contributing
Contributions are always welcome!
If you are interested in contributing feel free to check out the open issues and check out the contribution guidelines.
Owner
- Name: Eshin Jolly
- Login: ejolly
- Kind: user
- Website: https://eshinjolly.com
- Twitter: Eshjolly
- Repositories: 103
- Profile: https://github.com/ejolly
JOSS Publication
Pymer4: Connecting R and Python for Linear Mixed Modeling
Authors
Dartmouth College
Tags
statistics multilevel models R lme4Papers & Mentions
Total mentions: 1
Assessing criticality in pre-seizure single-neuron activity of human epileptic cortex
- DOI: 10.1371/journal.pcbi.1008773
- OpenAlex ID: https://openalex.org/W3135504521
- Published: March 2021
GitHub Events
Total
- Create event: 6
- Release event: 3
- Issues event: 30
- Watch event: 15
- Delete event: 11
- Issue comment event: 13
- Push event: 86
- Pull request event: 8
- Fork event: 2
Last Year
- Create event: 6
- Release event: 3
- Issues event: 30
- Watch event: 15
- Delete event: 11
- Issue comment event: 13
- Push event: 86
- Pull request event: 9
- Fork event: 2
Committers
Last synced: 5 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| ejolly | e****y@g****m | 315 |
| shotgunosine | a****e@g****m | 16 |
| Tom Urbach | t****h@u****u | 6 |
| Andrea Manica | a****5@c****k | 5 |
| Anthony | a****2@h****m | 2 |
| jcheong0428 | j****8@g****m | 1 |
| Paul Bogdan | p****n@g****m | 1 |
Issues and Pull Requests
Last synced: 4 months ago
All Time
- Total issues: 80
- Total pull requests: 36
- Average time to close issues: 11 months
- Average time to close pull requests: about 2 months
- Total issue authors: 47
- Total pull request authors: 10
- Average comments per issue: 1.99
- Average comments per pull request: 1.06
- Merged pull requests: 22
- Bot issues: 0
- Bot pull requests: 2
Past Year
- Issues: 9
- Pull requests: 5
- Average time to close issues: 26 days
- Average time to close pull requests: 38 minutes
- Issue authors: 5
- Pull request authors: 2
- Average comments per issue: 0.33
- Average comments per pull request: 0.0
- Merged pull requests: 3
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- ejolly (23)
- JohannesWiesner (4)
- anbai106 (3)
- shanaadise (3)
- sbSHA (2)
- turbach (2)
- savindi-wijenayaka (2)
- sandy1729-swish (2)
- paris007 (1)
- DaviYokogawa (1)
- cameron-mccabe (1)
- noahcreany (1)
- leichtle (1)
- ecoronado92 (1)
- cherepaha (1)
Pull Request Authors
- ejolly (14)
- Shotgunosine (6)
- turbach (6)
- dramanica (3)
- dependabot[bot] (2)
- AndrewRidden-Harper (2)
- paulcbogdan (1)
- jcheong0428 (1)
- gcamargo1 (1)
- Ben-FCC (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 5,269 last-month
- Total dependent packages: 1
- Total dependent repositories: 7
- Total versions: 20
- Total maintainers: 1
pypi.org: pymer4
pymer4: all the convenience of lme4 in python
- Homepage: http://eshinjolly.com/pymer4/
- Documentation: https://pymer4.readthedocs.io/
- License: MIT
-
Latest release: 0.9.2
published 7 months ago
Rankings
Maintainers (1)
Dependencies
- deepdish >=0.3.6
- joblib >=0.14
- matplotlib >=3.0
- numpy >=1.16.0
- pandas >=1.1.0
- patsy >=0.5.1
- rpy2 >=3.4.5,<3.5.0
- scipy >=1.4.0
- seaborn >=0.10.0
- actions/checkout v2 composite
- conda-incubator/setup-miniconda 059455a698430d8b68fa317268fa2e3da3492a98 composite
- crazy-max/ghaction-github-pages v2 composite
- mxschmitt/action-tmate v3 composite
- pypa/gh-action-pypi-publish master composite
- actions/checkout v2 composite
- conda-incubator/setup-miniconda 059455a698430d8b68fa317268fa2e3da3492a98 composite
- crazy-max/ghaction-github-pages v2 composite
- conda-incubator/setup-miniconda 059455a698430d8b68fa317268fa2e3da3492a98 composite
- actions/checkout v2 composite
- conda-incubator/setup-miniconda 059455a698430d8b68fa317268fa2e3da3492a98 composite
- actions/checkout v2 composite
- actions/checkout v2 composite
- conda-incubator/setup-miniconda 059455a698430d8b68fa317268fa2e3da3492a98 composite
- pypa/gh-action-pypi-publish master composite
- black ==22.10.0 development
- ipdb * development
- pdbr * development
- pycodestyle * development
- pytest * development
- pytest-sugar * development
- pytest-watch * development
- sphinx * development
- sphinx-gallery * development
- sphinx_bootstrap_theme * development
