Stratified linear regression mixture models
Main classes
Joint2Regressor: Stratified multiple regression with continuity constraints for two (or K) groups.JointKRegressor: Stratified regression across K groups, with joint constraints, lasso and quantile.Joint2GMMRegressor: EM algorithm for stratified Gaussian mixture regression with constraints.JointUtils: Utilities for group splitting, closest point to median finding, etc.
Key Features
- Joint multi-group regression with continuity or custom constraints at the join point.
- Supports quantile regression, penalized regression (lasso, ridge, elasticnet), and stratified GMM.
- Stratified multivariate piecewise regression, not directly available in scikit-learn or statsmodels.
Note : This package is provided “as is” for reproducing results, even if not all features are fully
implemented or tested. For the moment the lasso and ridge includes the $beta_0$, hence the eventual
intercept may be removed (centering $y_\ell$). The code development had involved the use of modern
tools, for code refactoring into classes, writing of the docstring, and help for code cleaning and
debugging, robustfying the data entry types, etc.
Installation
pip install stratifreg
Usage
import stratifreg
from stratifreg import two_groups
References
- Priam, R. (2025). Family of linear regression mixture models stratified along the outcome.
Open Archive: hal-04179813v3
Metadata
Release files for statifreg 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| statifreg-0.1.1.tar.gz | 15.2 kB | Without provenance | Details for statifreg-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| statifreg-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for statifreg-0.1.1-py3-none-any.whl |
Total release size: 33.2 kB
Release files / statifreg-0.1.1.tar.gz
| Download URL | statifreg-0.1.1.tar.gz |
|---|---|
| Size | 15.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e6ee73e3c8e6785c8857a9e0df6f3985b5688e1e50671c4baeea3beb28b0f5cb
|
|
BLAKE2b-256 checksum How to use checksums |
89b125553c4a28f87c5af25c438837f3c2fae0a3e912daf526a44874fb701313
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.12
|
Release files / statifreg-0.1.1-py3-none-any.whl
| Download URL | statifreg-0.1.1-py3-none-any.whl |
|---|---|
| Size | 18.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6a46ecd42929bd2f1391628210e721589969066af46f322c67361b6d19998c7d
|
|
BLAKE2b-256 checksum How to use checksums |
2a082918e031757682c1cc5cfad2c6ac97ae87cd388d165d1e804942b7dad75a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.12
|
Security for statifreg 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.