VAR-GARCH model of inflation and output growth

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

espritz
Posts: 5
Joined: Tue Jan 28, 2014 10:54 am

VAR-GARCH model of inflation and output growth

Postby espritz » Tue Jan 28, 2014 11:03 am

Hi everybody,

I'm currently working on my thesis and I should estimate the correlation between inflation growth and output growth. I have the dlog(gdp) and dlog(cpi) as time series from 1980 to 2012. I have EVIEWS 6.

I would like to ask if there is a way to build a VAR(p)-GARCH(p*,q) model on EVIEWS: seems that the best software is RATS, but I have no idea how to use it.

What I should do is to estimate simultaneously the following

- mean equation: VAR Xt = a + b*X(t-1) + e(t) where X = [inf, out]' matrix
- variance equation: GARCH-BEKK et = c + d*e(t-1) + f(t)

Does anybody have an idea?

Thank you so much!

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

Re: VAR-GARCH model of inflation and output growth

Postby trubador » Wed Jan 29, 2014 3:18 am

You can define the VAR part as a system and then estimate the model with ARCH method choosing diagonal BEKK specification. You'll have the parameter estimates, but, unlike the VAR object, you will not be able to generate impulse responses built-in.

espritz
Posts: 5
Joined: Tue Jan 28, 2014 10:54 am

Re: VAR-GARCH model of inflation and output growth

Postby espritz » Thu Jan 30, 2014 4:54 am

unfortunately seems that is not possible.

Step by step, I do:

1) a VAR system with inflation and output growth as endogenous variables, with p lags.

Estimation Proc:
===============================
LS 1 2 INF Y @ C

VAR Model:
===============================
INF = C(1,1)*INF(-1) + C(1,2)*INF(-2) + C(1,3)*Y(-1) + C(1,4)*Y(-2) + C(1,5)

Y = C(2,1)*INF(-1) + C(2,2)*INF(-2) + C(2,3)*Y(-1) + C(2,4)*Y(-2) + C(2,5)


2) proc > make a system ordered by variable > estimate > garch BEKK model

INF = C(1)*INF(-1) + C(2)*INF(-2) + C(3)*Y(-1) + C(4)*Y(-2) + C(5)

Y = C(6)*INF(-1) + C(7)*INF(-2) + C(8)*Y(-1) + C(9)*Y(-2) + C(10)

the output is: "contemporaneous variables not allowed on right side of equation".

Can you please help me? I'm just fighting with this problem since months.

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

Re: VAR-GARCH model of inflation and output growth

Postby trubador » Thu Jan 30, 2014 10:04 am

Nothing seems wrong with those steps. There may be an issue specific to the version 6, but I am not sure.
Run the following code from within a program window (File-New-Program) or execute them one at a time from the command window:

Code: Select all

group yvar.add inf y
var meaneq.ls 1 2 yvar
meaneq.makesystem(n=vareq)
vareq.arch(deriv=aa) @diagbekk c(indef) arch(1,diag) garch(1,diag)

If the problem continues, then you can estimate the model in two steps: first VAR, and then apply BEKK to the residuals.

espritz
Posts: 5
Joined: Tue Jan 28, 2014 10:54 am

Re: VAR-GARCH model of inflation and output growth

Postby espritz » Fri Jan 31, 2014 3:47 am

I'm currently using EVIEWS 8 and I replaced your codes. The result is always the same "contemporaneous variables not allowed on right side of equation".

Do you think that doing a garch-bekk on residuals is an equivalent way of estimating the model?

Thank you so much.
Attachments
garchtest.WF1
(12.13 KiB) Downloaded 670 times

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

Re: VAR-GARCH model of inflation and output growth

Postby trubador » Fri Jan 31, 2014 4:05 am

Code works fine with me. Could you please check the build date of your copy of EViews (Help-->About Eviews) and update if it is outdated? http://www.eviews.com/download/download.html

Results will not be identical, but yes you can estimate it in two steps. There is really nothing special or complicated about this type of models.

espritz
Posts: 5
Joined: Tue Jan 28, 2014 10:54 am

Re: VAR-GARCH model of inflation and output growth

Postby espritz » Fri Jan 31, 2014 4:17 am

it was outdated!

THANKS A MILLION!!!

bvguizar
Posts: 40
Joined: Sat Aug 28, 2010 6:56 am

Re: VAR-GARCH model of inflation and output growth

Postby bvguizar » Fri Dec 19, 2014 6:45 am

trubador wrote:Nothing seems wrong with those steps. There may be an issue specific to the version 6, but I am not sure.
Run the following code from within a program window (File-New-Program) or execute them one at a time from the command window:

Code: Select all

group yvar.add inf y
var meaneq.ls 1 2 yvar
meaneq.makesystem(n=vareq)
vareq.arch(deriv=aa) @diagbekk c(indef) arch(1,diag) garch(1,diag)

If the problem continues, then you can estimate the model in two steps: first VAR, and then apply BEKK to the residuals.



it says INF is not defined. I am new in programming and this is a struggle for me

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

Re: VAR-GARCH model of inflation and output growth

Postby trubador » Fri Dec 19, 2014 7:26 am

bvguizar wrote:it says INF is not defined. I am new in programming and this is a struggle for me

That code is specific to the analysis carried out on the variables y and inf. You should use your own variables and adjust the code where necessary. Note that you can also use menus instead (Object->New object->System). Please refer to Help files for more details.


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 52 guests