jumps - Hodrick-Prescott Filter and Spline Smoothing with Jumps
A set of functions to compute the Hodrick-Prescott (HP)
filter and spline smoothing with automatically selected jumps.
The original HP filter and spline smoothing extract a smooth
signal, and our version allows for a small number of
automatically identified jumps. Smoothing splines with
discontinuities are obtained either by time warping, or by the
dynamic-programming algorithm of Storath and Weinmann (2024)
<doi:10.1080/10618600.2023.2262000>. See Maranzano and
Pelagatti (2025) <doi:10.1016/j.econmod.2025.107132> for
details on the HP filter with jumps.