I have a question related to a number of previous posts, i.e. [Steady State File).
I just started a new job and inherited code from another colleague. I am responsible for adding and subtracting variables from the code. And, it seems that the code (“workhorsemodel”) fails to run due to workhorsemodel_steadystate.m. I have adapted the code to a neoclassical growth model (“ncgm1”) with fixed labor (as in Eric Sims’ notes), for which I get a string of errors when running, including:
[code]Error using print_info (line 72)
The steadystate file did not compute the steady state
Error in resid (line 112)
print_info(info,options_.noprint, options_)
Error in steady (line 90)
resid;
Error in ncgm1 (line 122)
steady;
Error in dynare (line 180)
evalin(‘base’,fname) ;
Error in run_ncgm1 (line 17)
dynare ncgm1 noclearall nolog[/code]
I think the problem may be found in these five lines, but I am not sure why:
for ii = 1:NumberOfEndogenousVariables
varname = deblank(M_.endo_names(ii,:));
eval('ys(' int2str(ii) ') = ' varname ';']);
end
ysold = ys;
Please tell me if you have any suggestions for why this code is not running and what I can do to remedy this problem. Also, any suggestions on easily modify, altering, adding to or subtracting from inherited code would be much (much!) appreciated.
Cheers!
run_ncgm1.m (244 Bytes)
ncgm1_steadystate.m (1.46 KB)
ncgm1.mod (3.28 KB)