Error in RBC.MOD

Dear all,

I am a dynare beginner when run the example “rbc.mod”, there is an error occuring:

??? Undefined variable lgy_.

Error in ==> rbc at 125
table(‘Relative standard deviations in %’,strvcat(‘VARIABLE’,‘REL. S.D.’),lgy_(1:6,:),statistic1,10,8,4);

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

how to deal with it?

Thanks,

Xibu

Hi, This example is not compatible with dynare 4! The global lgy_, used in dynare version 3, was an array of char containing the names of the endogenous variables of the model. If you replace lgy_ by M_.endo_names it should be ok.
Best, Stéphane.