SAS Procedures

Help using Base SAS procedures
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-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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.

SAS Training: Just a Click Away

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

Browse our catalog!

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