Score contribution per author:
α: calibrated so average coauthorship-adjusted count equals average raw count
The Hodrick–Prescott filter is a popular tool in macroeconomics for decomposing a time series into a smooth trend and a business cycle component. The last few years have witnessed global events, such as the Global Financial Crisis, the COVID-19 pandemic, and the war in Ukraine, that have had abrupt structural impacts on many economic time series. Moreover, new regulations and policy changes generally lead to similar behaviours. Thus, those events should be absorbed by the trend component of the trend-cycle decomposition, but the Hodrick–Prescott filter does not allow for breaks. We propose a modification of the Hodrick–Prescott filter that contemplates breaks and automatically selects the time points in which the breaks occur. We provide efficient implementation of the new filter in an R package. We use our new filter to assess what Italian labour market reforms impacted employment in different age groups.