example files fs2000ms.mod and RBC_Est.mod

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.

example files fs2000ms.mod and RBC_Est.mod

Postby tess1704 » Fri Oct 08, 2010 3:52 pm

Hi everybody,

I have a problem with the User Guide's example files fs2000ms.mod and RBC_Est.mod. When I run them (I'm using Dynare 4.1.2), I always get this error message:

??? Error: File: C:\dynare\4.1.2\matlab\McMCDiagnostics_core.m Line: 36 Column: 8
Functions cannot be indexed using {} or . indexing.

Error in ==> McMCDiagnostics at 100
fout = McMCDiagnostics_core(localVars,1,npar,0);

Error in ==> dynare_estimation_1 at 1066
McMCDiagnostics(options_, estim_params_, M_);

Error in ==> dynare_estimation at 62
dynare_estimation_1(var_list,varargin{:});

Error in ==> fs2000ns at 175
dynare_estimation(var_list_);

Error in ==> dynare at 132
evalin('base',fname) ;

I saw on older posts, that the problem had been solved in the Dynare Unstable version, but when I use that I get this error message:

??? Undefined command/function 'setenv'.

Error in ==> set_dynare_threads at 27
setenv('DYNARE_NUM_THREADS',int2str(n));

Error in ==> dynare_config at 161
set_dynare_threads(1);

Error in ==> dynare at 80
dynareroot = dynare_config;

Can anybody help me?

Thank you

Alice
tess1704
 
Posts: 10
Joined: Fri Oct 08, 2010 2:27 pm

Re: example files fs2000ms.mod and RBC_Est.mod

Postby StephaneAdjemian » Mon Oct 11, 2010 7:34 am

Dear Alice, the snapshot version is not compatible with old versions of matlab (<=7.2) because the setenv fonction was implemented in matlab 7.3. We use this command to specify the number of threads used in parallalized versions of some mex files. We have to fix this, meanwhile you can safely comment out line 161 in dynare_config.m.

Best, Stéphane.
Stéphane Adjemian
Université du Maine, GAINS and DynareTeam
https://stepan.adjemian.eu
StephaneAdjemian
 
Posts: 429
Joined: Wed Jan 05, 2005 4:24 pm
Location: Paris, France.

Re: example files fs2000ms.mod and RBC_Est.mod

Postby tess1704 » Mon Oct 11, 2010 2:00 pm

Dear Stephan,

thank you very much. Now it runs.

Best

Alice
tess1704
 
Posts: 10
Joined: Fri Oct 08, 2010 2:27 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 6 guests