Problems with estimating Realized GARCH

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

evaeva
Posts: 2
Joined: Tue Mar 02, 2010 2:54 pm

Problems with estimating Realized GARCH

Postby evaeva » Tue Jun 28, 2011 1:52 am

Hi,
I am trying to estimate Realized GARCH by Peter Hansen (2011), but have some problems with it - please see the attachment with description. I am using Eviews 6.

I would be very grateful if you could help me. Thank you very much in advance!

Eva
Attachments
realized_garch.pdf
(38.24 KiB) Downloaded 589 times

trubador
Did you use forum search?
Posts: 1520
Joined: Thu Nov 20, 2008 12:04 pm

Re: Problems with estimating Realized GARCH

Postby trubador » Tue Jun 28, 2011 3:50 am

It seems you have correctly specified the model. It is hard to tell what is wrong going on with the model without seeing your data. It would be helpful, if you can post your workfile that contains the data. That said, you can first estimate a garch model to gain insight into domain of your model's parameters.

evaeva
Posts: 2
Joined: Tue Mar 02, 2010 2:54 pm

Re: Problems with estimating Realized GARCH

Postby evaeva » Tue Jun 28, 2011 5:51 am

Hi,
thank you for the answer. I attach the initial workfile (realized_garch.wf1) with only two variable "x" and "r" and then the code and then the resulting workfile (realized_garch_results.zip).

Many thanks!
Eva
Attachments
realized_garch_results.zip
(27 KiB) Downloaded 349 times
program_0628_eviews.prg
(852 Bytes) Downloaded 366 times
realized_garch.wf1
(921.6 KiB) Downloaded 318 times

trubador
Did you use forum search?
Posts: 1520
Joined: Thu Nov 20, 2008 12:04 pm

Re: Problems with estimating Realized GARCH

Postby trubador » Tue Jun 28, 2011 7:05 am

I modified the following section so as to get initial values from regular garch estimation. You can delete unnecessary output once you decide which ones to keep.

Code: Select all

'declaration of coefficient vectors to use in RealGARCH likelihood equation init.arch(1,1) r @ x(-1) init.makegarch h0 series z0 = r/@sqrt(h0) equation ols.ls x c h0 z0 (z0^2-1) coef(1) omega = init.@coefs(1) coef(1) beta = init.@coefs(3) coef(1) gamma = init.@coefs(4) coef(1) xi = ols.@coefs(1) coef(1) phi = ols.@coefs(2) coef(2) tau tau(1) = ols.@coefs(1) tau(2) = ols.@coefs(2) coef(1) sigma=ols.@se^2


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests