BookmarkSubscribeRSS Feed
AlexeyS
Pyrite | Level 9

Hello, i would like to calculate trend through Hodrick-Prescott Filter.

i have next data :

       time            Price

10:10:10.10        101 

10:10:11.12        102

10:10:12.56        101.2

10:10:12.57        101.2

10:10:16.11        101.8

10:10:16.19         102.1

i found the next link to calculate HP, but i don't undestand it, and i don't think it suitable for time data

http://support.sas.com/documentation/onlinedoc/ets/ex_code/121/ucmex05.html

 

how can i calculate HP Filter trend? 

 

Thank you 

 

1 REPLY 1
PGStats
Opal | Level 21

Proc UCM requires a regularly spaced time series. You'll find a better explanation of the example here :

 

http://support.sas.com/documentation/cdl/en/etsug/67525/HTML/default/viewer.htm#etsug_ucm_examples05...

 

You can use proc expand to transform your irregular time series into a regular one.

PG

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 2256 views
  • 0 likes
  • 2 in conversation