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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 2006 views
  • 0 likes
  • 2 in conversation