Puzzle with ex2 in F. Barillas, R. Colacito, S. Kitao, C. Ma

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.

Puzzle with ex2 in F. Barillas, R. Colacito, S. Kitao, C. Ma

Postby Peterpierre » Fri May 30, 2008 1:04 am

hi

I took the code in two country model in Barillas etc. and changed to these shocks:

shocks;
var e1; stderr .008;
var e2; stderr .008;
var e1,e2=0.0022;
end;

The code will return the error message below. But the code works if I give:

shocks;
var e1; stderr .008;
var e2; stderr .008;
//var e1,e2=0.0022;
end;

or

shocks;
var e1; stderr .08;
var e2; stderr .08;
var e1,e2=0.0022;
end;

Anybody knows what may be going on?
THANKS!



??? Error using ==> chol
Matrix must be positive definite.

Error in ==> simult at 42
chol_S = chol(M_.Sigma_e(i_exo_var,i_exo_var));

Error in ==> stoch_simul at 64
oo_.endo_simul = simult(repmat(oo_.dr.ys,1,M_.maximum_lag),oo_.dr);

Error in ==> TwocountryApprox at 132
info = stoch_simul(var_list_);

Error in ==> dynare at 81
evalin('base',fname) ;
Peterpierre
 
Posts: 28
Joined: Tue Apr 22, 2008 6:17 pm

Re: Puzzle with ex2 in F. Barillas, R. Colacito, S. Kitao, C. Ma

Postby Jian Li » Thu Jun 18, 2009 10:40 am

I think you can solve the problem if you try the form

var e,u=phi*stderr(e)*stderr(u);

phi is the conditional correlation of e and u
Jian Li
 
Posts: 1
Joined: Thu Jun 18, 2009 10:36 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 13 guests