levin's code_ramsey policy

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.

levin's code_ramsey policy

Postby sub_macro » Wed Apr 27, 2011 8:05 pm

I have been trying to solve ramsey policy with Levin's code. I used Dynare version 3 with MatlabR2010a in windows. I followed exactly the same procedure in the readme text file of levin's code. But I get the following error message when I run the basemodel.mod file.

>> infilename='basemodel';
>> outfilename='basemodel_out';
>> get_ramsey;
// Monetary Policy Rule
Note: 1 policy rules declared in model file
??? Error using ==> sym.sym>checkindex at 2590
Index must be a positive integer or logical.

Error in ==> sym.sym>privformatscalar at 2540
checkindex(x);

Error in ==> sym.sym>privformat at 2524
s = privformatscalar(x);

Error in ==> sym.sym>sym.subsref at 1364
[inds{k},refs{k}] = privformat(inds{k});

Error in ==> dynmod2sym at 425
eval(alleqns);

Error in ==> get_ramsey at 22
dynmod2sym;

I am uploading my basemodel.mod in this post. Can anyone please tell me what I am doing wrong? I just want to get the policy functions and the IRFs.
Attachments
basemodel.mod
(1.69 KiB) Downloaded 137 times
sub_macro
 
Posts: 5
Joined: Wed Apr 27, 2011 5:52 pm

Return to Dynare help

Who is online

Users browsing this forum: No registered users and 7 guests