Page 1 of 1

rational expectations open economy model simulation

PostPosted: Mon Apr 08, 2013 8:34 am
by asmae
Hello,

I'm trying to simulate a RBC model where an economy is hit by a negative leverage shock (the model is inspired from KM97 and PW2012 already talked about in the forum).
In writing my code i used some of the files posted in the forum, but still my simulation doesn't give any result.

Here attached my mod file.

Any help will be appreciated :|

Re: rational expectations open economy model simulation

PostPosted: Wed Apr 10, 2013 7:00 am
by jpfeifer
You use an undefined variable, i.e. R in line 20, column 4. That's why Dynare says
ERROR: RBC.mod:20.4-8: To use an external function (R) within the model block, you must first declare it via the external_function() statement.

??? Error using ==> dynare at 122
DYNARE: preprocessing failed

Re: rational expectations open economy model simulation

PostPosted: Wed Apr 10, 2013 10:30 pm
by asmae
Hello,

yes you are right. Thank you for your reply.