Cooley Example error

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.

Cooley Example error

Postby gabriel » Fri Jul 24, 2009 4:10 am

Hello, all!
I have replaced the last line in the RBC_Cooley.mod example to:

Code: Select all
table('Relative standard deviations in %',strvcat('VARIABLE','REL. S.D.'),M_.endo_names(1:6,:),statistic1,10,8,4);


to avoid the
Code: Select all
lgy_
issue but now when I run the example I get another error message:

Code: Select all
??? Undefined function or method 'table' for input arguments of type 'char'.

Error in ==> rbc_cooley at 130
table('Relative standard deviations in %',strvcat('VARIABLE','REL. S.D.'),M_.endo_names(1:6,:),statistic1,10,8,4);

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


A search for "evalin" on the forum returns no results.

Can you please help me troubleshoot this? [Using 4.0.4 with Matlab R2008a/7.6.0]
I have just started looking into Dynare and I'm trying to get the examples to work 100%.
gabriel
 
Posts: 2
Joined: Fri Jul 24, 2009 4:05 am

Re: Cooley Example error

Postby gbel » Fri Jul 31, 2009 7:46 pm

'evalin' is a Matlab function. It just says 'table' it can't find 'table'. Maybe it's not on your path. Otherwise I don't know.
gbel
 
Posts: 33
Joined: Thu Sep 04, 2008 8:34 pm
Location: Québec

Re: Cooley Example error

Postby SébastienVillemot » Tue Aug 25, 2009 1:29 pm

Hi,

The "table" function has been renamed to "dyntable" in Dynare 4.0.4. This was necessary because this created a name conflict with the "table" function shipped with Octave.

Replacing "table" by "dyntable" in your code should fix the problem.

Best,
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France


Return to Dynare contributions and examples

Who is online

Users browsing this forum: No registered users and 4 guests