powered by
Hodrick-Prescott filter is a data smoothing technique that removes trending in time series data frame
HP(x, freq = NULL, type = c("lambda", "frequency"), drift = FALSE)
time-series vector
integer
character, indicating the filter type
logical
data(macroKZ) HP(macroKZ[,2])
Run the code above in your browser using DataLab