QuantileMix: A Python package for quantile g-computation
- 1Texas A&M University
Abstract
Health researchers often study how a mixture of pollutants or nutrients relates to health (Keil et al., 2020). Quantile g-computation addresses this question by giving each exposure an ordered score and fitting a model for the outcome. For example, dividing an exposure into four quantile groups gives scores 0, 1, 2, and 3. The model can compare score 1 with score 2 for every exposure at once. These groups need not contain equal numbers of observations when measurements are tied. A one-score increase can represent different changes in the original units for different exposures (Keil et al., 2020).
QuantileMix provides selected quantile g-computation methods in Python. It returns estimates, confidence intervals, predictions, and diagnostics for continuous, binary, count, and survival outcomes. Other models handle measurement limits, outcomes with several categories, and counts with many zeros. Fitting and prediction use NumPy and SciPy (Harris et al., 2020; Virtanen et al., 2020) and do not require R. The package includes a reference manual, runnable examples, and numerical comparisons with R.
Versions
Related
- Pyequate: A Python Package for Test Equating
- svPITE: A Python package for the state-vector-based probabilistic imaginary-time evolution algorithm
- SIREN: A Python Package for Automated Psychometric Scale Shortening Using Document Embeddings
- digimouth: a Python package for modeling aroma release in food science
- TASTET: a Python package for geometry-driven selection of representative atomistic structures from large configurational spaces
BibTeX
@misc{chapagain2026quantilemix,
title = {{QuantileMix: A Python package for quantile g-computation}},
author = {Nilson Chapagain},
howpublished = {Zenodo},
year = {2026},
month = oct,
doi = {10.5281/zenodo.23643431},
url = {https://zenodo.org/records/23643431},
note = {CC BY 4.0},
}
RIS
TY - UNPB
TI - QuantileMix: A Python package for quantile g-computation
AU - Nilson Chapagain
PY - 2026
DA - 2026/10/25
PB - Zenodo
DO - 10.5281/zenodo.23643431
UR - https://zenodo.org/records/23643431
AB - Health researchers often study how a mixture of pollutants or nutrients relates to health (Keil et al., 2020). Quantile g-computation addresses this question by giving each exposure an ordered score and fitting a model for the outcome. For example, dividing an exposure into four quantile groups gives scores 0, 1, 2, and 3. The model can compare score 1 with score 2 for every exposure at once. These groups need not contain equal numbers of observations when measurements are tied. A one-score increase can represent different changes in the original units for different exposures (Keil et al., 2020). QuantileMix provides selected quantile g-computation methods in Python. It returns estimates, confidence intervals, predictions, and diagnostics for continuous, binary, count, and survival outcomes. Other models handle measurement limits, outcomes with several categories, and counts with many zeros. Fitting and prediction use NumPy and SciPy (Harris et al., 2020; Virtanen et al., 2020) and do not require R. The package includes a reference manual, runnable examples, and numerical comparisons with R.
ER -