programming GARCH(1,1) with an exogeneous variable

For questions regarding programming in the EViews programming language.

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

katyajas
Posts: 3
Joined: Fri May 01, 2009 11:30 am

programming GARCH(1,1) with an exogeneous variable

Postby katyajas » Fri May 01, 2009 11:59 am

Hello again,

Could soemone please help on programming GARCH(1,1) and adding an exogeneous variable?
I do the following:

matrix(31,3) garchest_n
matrix(31,3)
for !i=01 to 31
equation eq{!i}.arch(1,1) tr{!i} c
garchest_n(!i,1)=c(3)
garchest_n(!i,2)=c(4)
garchest_n(!i,3)=c(5)


next

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

Re: programming GARCH(1,1) with an exogeneous variable

Postby trubador » Fri May 01, 2009 12:41 pm

You can add exogenous variables into your mean equation just like the constant. For variance regressors you'll have to put "@" sign after the mean equation followed by your exogenous variables. For example: equation eq{!i}.arch(1,1) tr{!i} c xm @ xv

katyajas
Posts: 3
Joined: Fri May 01, 2009 11:30 am

Re: programming GARCH(1,1) with an exogeneous variable

Postby katyajas » Sat May 02, 2009 5:42 am

Many thanks for your help. It worked fine. :)


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests