T. Sargent's codes from Practicing Dynare replicating Chap. 11 of his and Lars Ljungqvist's book do not seem to work under version 4.
The error message I get when running "Fig1131.mod" reads
??? Undefined function or method 'var_index' for input arguments of type 'char'.
Error in ==> Fig1131 at 120
co = ys0_(var_index('c'));
Error in ==> dynare at 102
evalin('base',fname) ;
Is there some change in version 4 that is incompatible with the original Sargent's code? Is there some fix to use the files in version 4 too?
Thank you in advance,
Jan