Model bloc

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.

Model bloc

Postby DJINKPO » Wed Jun 20, 2012 1:50 pm

Hello!
I have a problem with my model code, especially in the model bloc. When I run the code, I get an error mesage like ERROR: File.mod:59.53: syntax error, unexpected ';'
I think Dynare does not recognize some of equation in the bloc model as such. Could anybody have a solution for that? What does such message mean?
Best regards
DJINKPO
 
Posts: 10
Joined: Thu Dec 22, 2011 8:41 am

Re: Model bloc

Postby HoutanBastani » Wed Jun 20, 2012 2:11 pm

Please post your mod file
Best,
Houtan
HoutanBastani
 
Posts: 197
Joined: Fri Jan 22, 2010 4:11 pm
Location: Paris, France

Re: Model bloc

Postby rteconomics » Wed Jun 20, 2012 2:12 pm

Hi,
it simply means that in that line Dynare does not expect a ';'. Probably because it should be put few lines after or before that point.
If u attach the code I'll have a look.
Best,
RT
rteconomics
 
Posts: 41
Joined: Wed Jan 04, 2012 11:29 am

Re: Model bloc

Postby DJINKPO » Tue Jun 26, 2012 10:18 am

Hello!
Here is my .mod file. I couldn't explain in full detail what each equation stands for. However, the bloc model meet the requirement of dynare code.
Your assistance is wellcome. If anything wrong in the model bloc please let me know.
best regards
Attachments
Gambia3.mod
(10.01 KiB) Downloaded 69 times
DJINKPO
 
Posts: 10
Joined: Thu Dec 22, 2011 8:41 am

Re: Model bloc

Postby HoutanBastani » Thu Jun 28, 2012 9:44 am

The first error I get is on line 98:

ERROR: Gambia3.mod:98.54: syntax error, unexpected ';'


You get this error because you have not closed the parenthesis in that equation. You have:

Code: Select all
tc=rhoc*tc(-1)+(1-rhoc)*(phic*y(-1)+gamc*((b(-1)))+e_c;


Fixing this yields the same error for several equations.
Best,
Houtan
HoutanBastani
 
Posts: 197
Joined: Fri Jan 22, 2010 4:11 pm
Location: Paris, France

Re: Model bloc

Postby DJINKPO » Thu Jul 05, 2012 6:42 pm

Hello!
I ran my model and I got the expected outcome but unfortunately with the error message below:
Warning: Matrix is close to singular or badly scaled.
Results may be inaccurate. RCOND = 4.238587e-064.
> In evaluate_steady_state at 76
In resol at 108
In check at 71
In Gambia at 253
In dynare at 120
How can I solve this problem and get the best result?
Adding one more equation to my model, I got this message:
Warning: Matrix is close to singular or badly scaled.
Results may be inaccurate. RCOND = 1.179317e-063.
> In evaluate_steady_state at 76
In resol at 108
In stoch_simul at 76
In Gambia at 284
In dynare at 120
??? Error using ==> print_info at 43
Blanchard Kahn conditions are not satisfied: indeterminacy

Error in ==> stoch_simul at 81
print_info(info, options_.noprint);

Error in ==> Gambia at 284
info = stoch_simul(var_list_);

Error in ==> dynare at 120
[/b][/i]evalin('base',fname) ;
and the program couldn't run. I mean I did not get the expected outcome. I hope this may come from the initial value for the endogenous and exogenous variables.
How best can I find the steady state that satisfies the rank condition?
Thanks
DJINKPO
 
Posts: 10
Joined: Thu Dec 22, 2011 8:41 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 4 guests