%0 Journal Article %T rtestim: Time-varying reproduction number estimation with trend filtering. %A Liu J %A Cai Z %A Gustafson P %A McDonald DJ %J PLoS Comput Biol %V 20 %N 8 %D 2024 Aug 6 %M 39106282 %F 4.779 %R 10.1371/journal.pcbi.1012324 %X To understand the transmissibility and spread of infectious diseases, epidemiologists turn to estimates of the instantaneous reproduction number. While many estimation approaches exist, their utility may be limited. Challenges of surveillance data collection, model assumptions that are unverifiable with data alone, and computationally inefficient frameworks are critical limitations for many existing approaches. We propose a discrete spline-based approach that solves a convex optimization problem-Poisson trend filtering-using the proximal Newton method. It produces a locally adaptive estimator for instantaneous reproduction number estimation with heterogeneous smoothness. Our methodology remains accurate even under some process misspecifications and is computationally efficient, even for large-scale data. The implementation is easily accessible in a lightweight R package rtestim.