Page 1 of 1

 Error using ones

PostPosted: Sun Jul 12, 2015 2:52 pm
by yy1985
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:

Re:  Error using ones

PostPosted: Sun Jul 12, 2015 5:32 pm
by jpfeifer
Your first two model equations are not linear, thus you cannot use the linear option of model. Apart from that, Dynare has trouble finding the steady state. Which Dynare version generated this error message?

Re:  Error using ones

PostPosted: Fri Jul 17, 2015 6:10 am
by yy1985
Dear professor jpfeifer:
Thank you very much for your help!The first two model equations are not linear in my sod.mod.Under the guidance of you,we know how to solve it!
Best wishes!
Yun