Page 1 of 1

Model bloc

PostPosted: Wed Jun 20, 2012 1:50 pm
by DJINKPO
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

Re: Model bloc

PostPosted: Wed Jun 20, 2012 2:11 pm
by HoutanBastani
Please post your mod file

Re: Model bloc

PostPosted: Wed Jun 20, 2012 2:12 pm
by rteconomics
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

Re: Model bloc

PostPosted: Tue Jun 26, 2012 10:18 am
by DJINKPO
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

Re: Model bloc

PostPosted: Thu Jun 28, 2012 9:44 am
by HoutanBastani
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.

Re: Model bloc

PostPosted: Thu Jul 05, 2012 6:42 pm
by DJINKPO
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