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: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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