HP | R Documentation |
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)
x |
time-series vector |
freq |
integer |
type |
character, indicating the filter type |
drift |
logical |
data(macroKZ)
HP(macroKZ[,2])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.