select_lambda: Selecting lambda

Description Usage Arguments Details References

View source: R/07-filter.R

Description

Approaches to selecting lambda.

Usage

1
2
3
4
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.


kvasilopoulos/transx documentation built on Jan. 26, 2021, 6:14 p.m.