BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
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 ACCEPTED SOLUTION

Accepted Solutions
SASCom1
SAS Employee

Hello @kky6196 

Your PROC AUTOREG code is fitting a GARCH(1,1) model for the  daily_return variable for each country, and saves the conditional error variance from the GARCH(1,1) model into the output data set. The subsequent data step is transforming the conditional error variance to the standard deviation by taking the square root. If this is what you intended to do, then it looks good.

 

I hope this helps.

 

 

View solution in original post

1 REPLY 1
SASCom1
SAS Employee

Hello @kky6196 

Your PROC AUTOREG code is fitting a GARCH(1,1) model for the  daily_return variable for each country, and saves the conditional error variance from the GARCH(1,1) model into the output data set. The subsequent data step is transforming the conditional error variance to the standard deviation by taking the square root. If this is what you intended to do, then it looks good.

 

I hope this helps.

 

 

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 848 views
  • 1 like
  • 2 in conversation