select_lambda {transx}R Documentation

Selecting lambda

Description

Approaches to selecting lambda.

Usage

select_lambda(
  freq = c("quarterly", "annual", "monthly", "weekly"),
  type = c("rot", "ru2002")
)

Arguments

freq

⁠[character: "quarterly"]⁠

The frequency of the dataset.

type

⁠[character: "rot"]⁠

The methodology to select lambda.

Details

Rule of thumb is from Hodrick and Prescot (1997):

Ravn and Uhlig (2002) state that lambda should vary by the fourth power of the frequency observation ratio;

Thus, the rescaled default values for lambda are:

References

Hodrick, R. J., & Prescott, E. C. (1997). Postwar US business cycles: an empirical investigation. Journal of Money, credit, and Banking, 1-16.

Ravn, M. O., & Uhlig, H. (2002). On adjusting the Hodrick-Prescott filter for the frequency of observations. Review of economics and statistics, 84(2), 371-376.


[Package transx version 0.0.1 Index]