Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 Jul 3;81(3):ujaf121.
doi: 10.1093/biomtc/ujaf121.

The Cox-Pólya-Gamma algorithm for flexible Bayesian inference of multilevel survival models

Affiliations

The Cox-Pólya-Gamma algorithm for flexible Bayesian inference of multilevel survival models

Benny Ren et al. Biometrics. .

Abstract

Bayesian Cox semiparametric regression is an important problem in many clinical settings. The elliptical information geometry of Cox models is underutilized in Bayesian inference but can effectively bridge survival analysis and hierarchical Gaussian models. Survival models should be able to incorporate multilevel modeling such as case weights, frailties, and smoothing splines, in a straightforward manner similar to Gaussian models. To tackle these challenges, we propose the Cox-Pólya-Gamma algorithm for Bayesian multilevel Cox semiparametric regression and survival functions. Our novel computational procedure succinctly addresses the difficult problem of monotonicity-constrained modeling of the nonparametric baseline cumulative hazard along with multilevel regression. We develop two key strategies based on the elliptical geometry of Cox models that allows computation to be implemented in a few lines of code. First, we exploit an approximation between Cox models and negative binomial processes through the Poisson process to reduce Bayesian computation to iterative Gaussian sampling. Next, we appeal to sufficient dimension reduction to address the difficult computation of nonparametric baseline cumulative hazards, allowing for the collapse of the Markov transition within the Gibbs sampler based on beta sufficient statistics. We explore conditions for uniform ergodicity of the Cox-Pólya-Gamma algorithm. We provide software and demonstrate our multilevel modeling approach using open-source data and simulations.

Keywords: Bayesian inference; Cox model; Kaplan-Meier; frailty model; multilevel model; survival analysis.

PubMed Disclaimer

Conflict of interest statement

None declared.

References

    1. Aalen O. (1978). Nonparametric inference for a family of counting processes. The Annals of Statistics, 6, 701–726.
    1. Aalen O., Borgan O., Gjessing H. (2008). Survival and Event History Analysis: A Process Point of View. New York, NY: Springer Science and Business Media.
    1. Alvares D., Van Niekerk J., Krainski E. T., Rue H., Rustand D. (2024). Bayesian survival analysis with INLA. Statistics in Medicine, 43, 3975–4010. - PubMed
    1. Bender A., Groll A., Scheipl F. (2018). A generalized additive model approach to time-to-event analysis. Statistical Modelling, 18, 299–321.
    1. Borgan O., Goldstein L., Langholz B. (1995). Methods for the analysis of sampled cohort data in the Cox proportional hazards model. The Annals of Statistics, 23, 1749–1778.

LinkOut - more resources