arXiv Science⌕ Search

arXiv · 2611.32075

coherentSurv: Coherent Survival Modelling and Dynamic Forecasting for Recurrent and Terminal Events in R and Python

Abstract

Researchers studying recurrent events and terminal outcomes need software that connects incomplete event histories to interpretable forecasts and uncertainty estimates. We present coherentSurv, an R package for fitting history-dependent recurrent and terminal event models, predicting future event burden and terminal-event risk, and assessing sensitivity to incomplete observation. Users supply event histories, covariates and observation information; the package returns fitted models, dynamic forecasts, uncertainty summaries and diagnostic measures under explicitly stated assumptions. The package integrates over event histories compatible with tied dates or observation windows and supports several frailty distributions for between-subject heterogeneity. A shared probability model generates recurrent-event counts, terminal-event probabilities and restricted mean time alive. Cross-fitted targeting provides influence-function diagnostics and asymptotic inference in supported missing-at-random and right-censoring settings. Separate sensitivity analyses provide bounds under specified recording restrictions. A baseline binary-treatment interface estimates standardized treatment contrasts under consistency, conditional exchangeability, positivity and independent censoring. A compiled C++17 core supports an R interface and Python access to the same implementation through rpy2 and Rscript. Independent numerical checks, computational benchmarks, simulation experiments and reproducible examples document accuracy, performance and inferential limitations. Outputs retain observation assumptions, convergence information and numerical diagnostics. The package, tutorials and replication materials are publicly available, supporting transparent analysis across clinical and other event-history applications.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Sunday A. Adetunji, Oluwatimileyin A. Adetunji. 2026-11-26. coherentSurv: Coherent Survival Modelling and Dynamic Forecasting for Recurrent and Terminal Events in R and Python. https://arxiv.science/abs/2611.32075

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

SULA: Robust Langevin Sampling via Drift-Diffusion Saturation

The unadjusted Langevin algorithm (ULA) and its stochastic-gradient variant, SGLD, are workhorses of modern Bayesian machine learning, but can be fragile when faced with a target distribution possessing a non-Lipschitz drift. In such settings, the conditional expected squared jump distance can grow rapidly, leading to numerical instability or the need for prohibitively small step-sizes. We propose the saturated unadjusted Langevin algorithm (SULA) that pairs a saturated gradient drift with a gradient-informed state-dependent diffusion, while preserving first-order consistency with the Langevin diffusion. The two coefficients are chosen so that the conditional expected squared jump distance is independent of the gradient. Under suitable conditions, we establish first-order weak convergence to the Langevin diffusion, geometric ergodicity of the discretized Markov chain for a fixed step-size, and an $O(h)$ bound on the invariant-measure bias for smooth test functions with polynomial growth. We also develop a stochastic-gradient variant, SG-SULA, using a gradient rescaling motivated by a Gaussian cumulative distribution function identity under Gaussian gradient noise. Numerical experiments demonstrate that SULA is less sensitive to the choice of step-size than existing Langevin discretizations on the targets considered, and that SG-SULA provides competitive predictive performance in Bayesian inference problems.

stat.CO↗

A generalized ensemble-marginalized Kalman filter for semilinear time-dependent PDEs with noisy boundary conditions

Uncertainty in boundary data is a major source of bias in PDE-constrained inverse problems, yet it is often neglected by treating measured boundary records as exact inputs. The ensemble-marginalized Kalman filter (EnMKF) removes this bias for linear parabolic problems with noisy boundaries by modeling boundary values as a linear Gaussian control, estimating them with a Kalman filter, and marginalizing their uncertainty from the prediction step. We extend this construction to semilinear time-dependent PDEs by exploiting time discretizations in which the boundary enters the discrete dynamics affinely, such as IMEX schemes that treat the linear part implicitly and the nonlinear reaction explicitly. For such discretizations the boundary uncertainty can still be marginalized one step at a time, yielding a deterministic covariance inflation term without any additional sampling. For second-order-in-time problems, the same per-step marginalization fails because the sensitivity of the discrete velocity to boundary errors scales like the inverse time step; we introduce an error-state EnMKF that propagates temporally correlated boundary-error realizations according to the innovations-form dynamics of the control Kalman filter. Parameter-dependent observation operators are treated by augmenting the ensemble with predicted observations and projecting the marginalization term into observation space. Numerical experiments on contaminant transport with nonlinear decay and on nonlinear cable vibration demonstrate reduced boundary-induced parameter bias, avoidance of ensemble collapse at small ensemble sizes, and improved state and flux estimates relative to standard ensemble Kalman filters.

stat.CO↗

Sub-Cauchy Sampling: Escaping the Dark Side of the Moon

We introduce a Markov chain Monte Carlo algorithm based on Sub-Cauchy Projection, a geometric transformation that generalizes stereographic projection by mapping Euclidean space into a spherical cap of a hyper-sphere, referred to as the complement of the dark side of the moon. We prove that our proposed method is uniformly ergodic for sub-Cauchy targets, namely targets whose tails are at most as heavy as a multidimensional Cauchy distribution, and show empirically its performance for challenging high-dimensional problems. The simplicity and broad applicability of our approach open new opportunities for Bayesian modeling and computation with heavy-tailed distributions in settings where most existing methods are unreliable.

stat.CO↗