Overview of Pymer4 for regression and mixed modeling
mainPymer4 is a statistics library designed for estimating regression models, multi-level models, and generalized-linear-mixed models (GLMMs) within the Python ecosystem. It serves as a Python-based alternative to R's lm(), glm(), lmer(), and glmer() functions.
Key features include:
- Formula-based modeling: Provides a unified interface similar to R's modeling syntax.
- R Integration: Uses
rpy2to interface with R, allowing users to leverage R's robust modeling capabilities without leaving Python. - Quality-of-life features: Automatically calculates fit statistics, residuals, p-values for mixed models, bootstrapped confidence intervals, and random-effects deviances.
- Polars Integration: Built on top of the
polarsDataFrame library for high performance and efficiency.