Problem
Empirical macroeconomics has seen revived interest in filtering techniques. Write a function implementing the filter known as the Hodrick-Prescott filter among economists, including an estimate of its smoothing parameter. Schlicht (2005) is a good starting point.
The response should include a reference list. Double-space, using Times New Roman 12 pnt font, one-inch margins, and APA style of writing and citations.