Error using ones

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 ones

Postby yy1985 » 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:
Attachments
sod.mod
(1.03 KiB) Downloaded 33 times
yy1985
 
Posts: 27
Joined: Thu Feb 13, 2014 2:56 am

Re:  Error using ones

Postby jpfeifer » Sun Jul 12, 2015 5:32 pm

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?
------------
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 ones

Postby yy1985 » Fri Jul 17, 2015 6:10 am

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
yy1985
 
Posts: 27
Joined: Thu Feb 13, 2014 2:56 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 4 guests

cron