Estimates cyclical and trend component with HP-filter by Hodrick and Prescott (1997). The function is based on the function hpfilter from the package mFilter by Mehmet Balcilar.
hp_filter(x, lambda)
Column matrix with numeric values.
Numeric value.
Hodrick, R.J., and Prescott, E. C. Prescott (1997) "Postwar U.S. Business Cycles: An Empirical Investigation." Journal of Money, Credit and Banking, 29(1), 1-16.