Error using horzcat in deterministic simulation

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.

Error using horzcat in deterministic simulation

Postby invader21 » Mon Nov 02, 2015 4:59 pm

Dear all,

I would like to conduct a policy simulation under the assumption that the nominal interest rate stays at zero for some extended periods. For this exercise, I rely on the deterministic solver, simul. However, I obtain the following error messages:
------------------------------------------------------------------------------------------------------
Error using horzcat
Dimensions of matrices being concatenated are not consistent.
Error in simul (line 58)
mess = ['SIMUL: error in model specification : variable '
M_.endo_names(find(M_.lead_lag_incidence(M_.maximum_lag+1,:)==0),:)];
Error in basicmodel_kh4_debtrelief_ZLB (line 1039)
simul();
Error in dynare (line 180)
evalin('base',fname) ;
------------------------------------------------------------------------------------------------------
Interestingly, if I use the stochastic solver, stoch_simul, I can solve the model and get dynamic responses to a shock considered.
It would be great if someone gives me an idear to overcome these error messages.
I attach the files regarding to my model.

Thank you in advance.

Jinhyuk
Attachments
frac_default2.m
(541 Bytes) Downloaded 34 times
frac_default1.m
(224 Bytes) Downloaded 33 times
call_csolve4.m
(333 Bytes) Downloaded 35 times
call_csolve3.m
(238 Bytes) Downloaded 33 times
basicmodel_kh4_debtrelief_ZLB.mod
(15.15 KiB) Downloaded 33 times
invader21
 
Posts: 6
Joined: Mon Feb 09, 2015 9:21 am

Re: Error using horzcat in deterministic simulation

Postby jpfeifer » Tue Nov 03, 2015 1:57 pm

This is a bug in the stable version that has been fixed in the unstable version. The error message would be
PERFECT_FORESIGHT_SETUP: error in model specification : the variable(s) rl, re don't appear as current period variables.
------------
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: Error using horzcat in deterministic simulation

Postby invader21 » Tue Nov 03, 2015 5:24 pm

Dear Johannes,

thank you for your reply. I’ve resolved the problem by reformulating two equations to express that the variables rl, re can aprear as current period variables. And then, I face another error message, saying that the rank condition isn’t satisfied. It is strange because in stochastic simulation, the rank condition IS satisfied. It brings me to the following question.
Is there a big difference between a non-linear model and a linear model for a deterministic simulation?

Thanks in advance.

Jinhyuk
invader21
 
Posts: 6
Joined: Mon Feb 09, 2015 9:21 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 7 guests