Error using ones
Posted: Sun Jul 12, 2015 2:52 pm
Dear professor jpfeifer:
When we run the sod.mod file in dynare, there is a trouble that I don't know how to solve it. The error information is coming up with the following message:
Error using ones
NaN and Inf not allowed.
Error in dyntable (line 58)
hh = [hh char(32*ones(1,hlb)) deblank(headers(i,:)) ...
Error in disp_moments (line 97)
dyntable(title,headers,labels,autocorr,size(labels,2)+2,8,4);
Error in stoch_simul (line 154)
disp_moments(oo_.endo_simul,var_list);
Error in sod (line 207)
info = stoch_simul(var_list_);
Error in dynare (line 120)
evalin('base',fname) ;
Thank you much for your help and support!
The mod file as follows:
When we run the sod.mod file in dynare, there is a trouble that I don't know how to solve it. The error information is coming up with the following message:
Error using ones
NaN and Inf not allowed.
Error in dyntable (line 58)
hh = [hh char(32*ones(1,hlb)) deblank(headers(i,:)) ...
Error in disp_moments (line 97)
dyntable(title,headers,labels,autocorr,size(labels,2)+2,8,4);
Error in stoch_simul (line 154)
disp_moments(oo_.endo_simul,var_list);
Error in sod (line 207)
info = stoch_simul(var_list_);
Error in dynare (line 120)
evalin('base',fname) ;
Thank you much for your help and support!
The mod file as follows: