BookmarkSubscribeRSS Feed
kky6196
Calcite | Level 5

 

Hello,

I have raw daily returns data for about 10 countries. For each country, I wish to compute conditional volatility using the model GARCH(1,1).

 

Would this be the right code?

 

Proc autoreg data=daily_return outest=est;

model daily_return= / garch=(q=1, p=1); by country;

output out=conditional_var cev=vhat; run; quit;

 

data conditional_vol; gc; conditional_vol=sqrt(vhat); run;

 

Thank you-

 

 

 

1 REPLY 1

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

Register now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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