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 cesk » Fri Apr 17, 2015 10:32 am

Dear all,

I'm working with a model with search and matching frictions and endogenus separation (thus, I linearized the stochastic integral describing the expected productivity around the level of reservation productivity in the mod file). I was just trying a deterministic shock on the nominal interest rate to verify the dynamics of the model when I got this message:

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 shocks (line 761)
simul();

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

I really do not understand where the error comes from. The strange thing I noticed is that inside the oo_ structure, exo_simul is not a 1X8 vector but a 2X8 matrix, which I can't explain.

Does someone have any clue on why this happens? I attach the files.

Thank you!
Attachments
var_param_nonlin.mod
(5.93 KiB) Downloaded 88 times
lmr_model_nonlin.mod
(7.1 KiB) Downloaded 98 times
steady_state.m
(8.38 KiB) Downloaded 88 times
cesk
 
Posts: 9
Joined: Wed Feb 05, 2014 4:06 pm

Re: Error using horzcat in deterministic simulation

Postby jpfeifer » Sun Apr 19, 2015 8:51 am

The crash is due to a bug in constructing the error message. It should be
PERFECT_FORESIGHT_SETUP: error in model specification : the variable(s) n_n, n_e 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


Return to Dynare help

Who is online

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