QuantileMix: A Python package for quantile g-computation
Abstract
Health researchers often study how a mixture of pollutants or nutrients relates to health. 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. 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 and do not require R. The package includes a reference manual, runnable examples, and numerical comparisons with R.
Create a lesson
Related papers
KernelMix: Bayesian kernel machine regression in Python
Shared title terminology · Nilson Chapagain
Bayesian Computation of Copula-based Multivariate Models with an Application to Doping Detection
Shared title terminology · Emanuele Masillo, Eva Pigi Viltanioti, Nina Deliu et al.
tsspiral: An R Package to Create Circular Versions of Time Series Plots
Shared title terminology · Thiyanga S. Talagala
Computing rare events in Lévy-driven systems via optimal control
Shared title terminology · Jinan Pan, Timo Schorlepp
NEVEN: An Open-Source Polyglot Infrastructure Bridging Statistical Computing and Spreadsheet Workflows for Reproducible Research
Shared title terminology · Minor Bonilla-Gomez, Javier Trejos-Zelaya
dsp: An R Package for Bayesian Time Series Modeling with the Dynamic Shrinkage Process
Shared title terminology · Jason B. Cho, Daniel R. Kowal, Haoxuan Wu et al.