"? Undefined variable lgy_."

When I run the examle file rbc.mod in Dynare 4, it gives me the error message like this:

??? Undefined variable lgy_.

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

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

But it runs well in Dynare 3.

How should I correct this?

Thanks.

Bill

Hi,

The “lgy_” structure is now replaced by “M_.endo_names”. Beware that the order of variables may have changed since version 3.

Best,

Sébastien

Thanks, Sébastien.

I got it!!! I have corrected the .m files.

Bill