indeterminacy of international portfolio

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.

indeterminacy of international portfolio

Postby eli » Tue Nov 12, 2013 2:44 pm

Hi,

I am trying to use Dynare only to get some good initial conditions for a global method solution.
I am solving a two country model and I have the problem of the indeterminacy of the portfolio in ss.

I am trying to feed Dynare a steady state around which I would like a second order approximation (I am choosing one of the possible portfolios). However it complains and I get this

Error using lnsrch1 (line 53)
Some element of Newton direction isn't finite. Jacobian maybe singular or there is a
problem with initial values

Error in solve1 (line 129)
[x,f,fvec,check]=lnsrch1(xold,fold,g,p,stpmax,func,j1,j2,varargin{:});

Error in dynare_solve (line 130)
[x,info]=solve1(func,x,j1(r(i):r(i+1)-1),j2(r(i):r(i+1)-1),jacobian_flag,
bad_cond_flag, varargin{:});

Error in evaluate_steady_state (line 66)
[ys,check] = dynare_solve([M.fname '_static'],...

Error in steady_ (line 54)
[steady_state,params,info] =
evaluate_steady_state(oo_.steady_state,M_,options_,oo_,~options_.steadystate.nocheck);
Error in steady (line 81)
[steady_state,M_.params,info] = steady_(M_,options_,oo_);

Error in cfg_2nd_order_simple (line 231)
steady;

Error in dynare (line 120)
evalin('base',fname) ;

how can I solve this problem? I attach my super simple codes

thanks

elisa
Attachments
cfg_2nd_order_simple_steadysyate.m
(2.63 KiB) Downloaded 60 times
cfg_2nd_order_simple.mod
(2.5 KiB) Downloaded 62 times
eli
 
Posts: 2
Joined: Tue Nov 12, 2013 1:37 pm

Re: indeterminacy of international portfolio

Postby eli » Tue Nov 12, 2013 3:42 pm

sorry. the code was wrong.
here the correct codes.

now this is the problem:

Error using print_info (line 36)
The generalized Schur (QZ) decomposition failed. For more information, see the
documentation for Lapack function dgges: info=14, n=12

Error in stoch_simul (line 81)
print_info(info, options_.noprint);

Error in cfg_2nd_order_simple (line 244)
info = stoch_simul(var_list_);

Error in dynare (line 120)
evalin('base',fname) ;
Attachments
cfg_2nd_order_simple_steadystate.m
(2.62 KiB) Downloaded 61 times
cfg_2nd_order_simple.mod
(2.49 KiB) Downloaded 66 times
eli
 
Posts: 2
Joined: Tue Nov 12, 2013 1:37 pm

Re: indeterminacy of international portfolio

Postby jpfeifer » Tue Nov 12, 2013 6:15 pm

In the most recent snapshot,
Code: Select all
model_diagnostics(M_,options_,oo_)

says
model_diagnostic: the Jacobian of the static model is singular
there is 2 colinear relationships between the variables and the equations
Relation 1
Colinear variables:
kh_1
kf_1
a_1
Relation 2
Colinear variables:
kh_2
kf_2
a_2
Relation 1
Colinear equations
8 9 18 19

Relation 2
Colinear equations
7 10 17 20

The presence of a singularity problem typically indicates that there is one
redundant equation entered in the model block, while another non-redundant equation
is missing. The problem often derives from Walras Law.
------------
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

Re: indeterminacy of international portfolio

Postby selima » Tue Feb 11, 2014 5:35 pm

Good night , sorry for this question but I really want to know in this case how can we deternmine redundant equation and the non redudant one ? WHat does this message mean ? Does it mean in equation 8 for example the colinear variables are kh_1
kf_1 and a_1? thank you again for your answer
selima
 
Posts: 46
Joined: Thu Jan 10, 2013 5:13 pm


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 4 guests