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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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