pymer4: all the convenience of lme4 in python
conda create --name pymer4 -c ejolly -c defaults -c conda-forge pymer4 conda activate pymer4
conda install -c ejolly -c defaults -c conda-forge pymer4
pymer4 is a statistics library for estimating various regression and multi-level models in Python. Love
lme4 in R, but prefer to work in the scientific Python ecosystem? 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. In other words, you can work completely in Python, never having to deal with R, but get (most) of
lme4’s goodness. This is accomplished using
rpy2 to interface between langauges.
pymer4 can fit various additional regression models with some bells, such as robust standard errors, and two-stage regression (summary statistics) models.
TL;DR This package is your new simple Pythonic drop-in replacement for
glmer() in R.