Skip to content
DraconiticResearch
Search Sources API
203,234 studies31 sourcesUpdated 15 min ago
PreprintCC BY 4.0Zenodo

QuantileMix: A Python package for quantile g-computation

  1. 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

  1. Pyequate: A Python Package for Test Equating
    Laura Lambert, Yu Bao
    Applied Psychological MeasurementPeer-reviewedLicence not statedFull textPMC
  2. svPITE: A Python package for the state-vector-based probabilistic imaginary-time evolution algorithm
    Pascal Sievers, Satoshi Ejima
    SciPostPeer-reviewedCC BY 4.0General physicsSciPost
  3. SIREN: A Python Package for Automated Psychometric Scale Shortening Using Document Embeddings
    Benjamin Listyg, Brennah V. Ross
    Applied Psychological MeasurementPeer-reviewedLicence not statedFull textPMC
  4. digimouth: a Python package for modeling aroma release in food science
    C. Peltier, O. Mourabit, K. Coulibaly +2
    bioRxivPreprintAll rights reservedFull textSystems & synthetic biologybioRxiv
  5. TASTET: a Python package for geometry-driven selection of representative atomistic structures from large configurational spaces
    Alejandro Cañete-Arché, Ana McGinley, Pablo Castro-Latorre +2
    ChemRxivPreprintLicence not statedGeneral chemistryChemRxiv
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  -