estimation - expressing foreign economy as VAR (2)

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

estimation - expressing foreign economy as VAR (2)

Postby earsmall » Thu Aug 20, 2015 12:03 pm

Hi, I am trying to reproduce Justiniano and Preston (2010).
Since JAE provides data used in their estimation, I decided to write estimation code on my own using dynare.
While writing a code, I got one thing to ask.

According to the paper, the foreign economy(pi_st, y_st, i_st) is expressed by a vector autoregressive processes of order two.
So, I coded as

Code: Select all
pi_st = bpp1*pi_st(-1) + bpi1*i_st(-1) + bpy1*y_st(-1) + bpp2*pi_st(-2) + bpi2*i_st(-2) + bpy2*y_st(-2) + eps_ps ;
y_st = byp1*pi_st(-1) +  byi1*i_st(-1) + byy1*y_st(-1) + byp2*pi_st(-2) + byi2*i_st(-2) + byy2*y_st(-2) + eps_ys ;
i_st = bip1*pi_st(-1) +  bii1*i_st(-1) + biy1*y_st(-1) + bip2*pi_st(-2) + bii2*i_st(-2) + biy2*y_st(-2) + eps_is ; 


One thing strange is that there is no posterior estimates about coefficients of this VAR.

Is it correct that these coefficients are also estimation target?

Also, my estimation line is as follows.

Code: Select all
estimation(datafile=aus_data,plot_priors=0,nograph,mode_compute=4,presample=4,prefilter=1,mh_nblocks=1,mh_replic=110000,mh_jscale=0.5);


But I continuously meet

"Blanchard Kahn conditions are not satisfied: no stable equilibrium"

I think there is no unit-root in the equations but If I add "diffuse_filter" option, it starts estimation.
But soon, I meet


"Error using chol
Matrix must be positive definite."

Can you realize what is the problem?

Thank you.
earsmall
 
Posts: 40
Joined: Mon Jun 15, 2015 3:44 pm

Re: estimation - expressing foreign economy as VAR (2)

Postby jpfeifer » Fri Aug 21, 2015 7:17 am

Please provide the codes.
Yes, you are correct that the VAR(2) coefficients are estimated. See footnote 9 of Justiniano/Preston (2010).
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 8 guests