File S1 - Analysis code for jpm-4693847 (R2)
Stata 18 (survey-weighted, full NIS 2016-2022):
  1. Monlezun DO ImplantRevision2.do       - per-year extracts, exposure/outcome/exclusion flags, cohorts, primary and PS-quintile models, counts, balance
  2. Monlezun DO ImplantRevision2_core.do  - continuation: cohort sensitivity models
  3. Monlezun DO ImplantRevision2_new.do   - stricter (breast-conserving surgery) cohort, Z98.82-only exposure, implant x year interaction, covariate-only model, deaths
  4. Monlezun DO ImplantRevision3_verify.do  - (R2) year-specific models, random-effects synthesis, pooled 2016-2021 model, implant x 2022 interaction, 2016-2021 heterogeneity test
Python 3 (QBAM-PS components on the two-phase subsample):
  load.py (data extraction and two-phase sampling), stats_core.py (weighted logit, design variance, Firth, Bayesian pseudo-posterior MALA),
  analysis.py (Bayesian priors, neural-network benchmark, bias analysis), quantum_ps.py (hybrid quantum-classical propensity score, PennyLane),
  freq_all.py (frequentist models), figures.py and figs_b.py (figures).
NIS data are available from HCUP/AHRQ under its Data Use Agreement and are not included.
