Hodrick-Prescott Filter

Finds the Hodrick-Prescott filter of a series.
15,2K Descargas
Actualizado 18 sep 2003

Ver licencia

This m-file finds the Hodrick-Prescott filtered series of any trendy time series; H-P is widely known in econometrics and can be used to analyse the trends and volatility of the series.

This version uses sparse matrices, this approach increases speed and performance and allows working with several time series simultaneously. The option 'makeplot' plots every time series introduced against its filtered counterpart and the output desvabs gives a "measure" of the volatility.

Download and type Help hpfilter for more details

Inspired in hpfilter by Ivailo Izvorski and Gauss code by Ken Matheny

Citar como

Wilmer Henao (2026). Hodrick-Prescott Filter (https://es.mathworks.com/matlabcentral/fileexchange/3972-hodrick-prescott-filter), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R13
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Digital Filter Analysis en Help Center y MATLAB Answers.
Agradecimientos

Inspiración para: Analyze FEX download data

Versión Publicado Notas de la versión
1.0.0.0