Erros in compute_model_moments.m?

The first line in this piece of code is :
moments=compute_model_moments(dr,M_,options,_)

Should it not be moments=compute_model_moments(dr,M_,options_)?

If I use Matlab 2007a, Matlab will give me an error message. If I use Matlab 2008b, Matlab seems stuck somewhere. I am runing the Smets and Wouters’ code for their AER paper.

Hi bigbigben,

Do you know where I can download this Dynare code?

Thanks.

Bill

Hi, Bill:
It is on AEA website. AER offers technical appendix and replication code for all published paper online.

Thanks, Bigbigben!

This helps a lot. I used Uhlig’s codes to replicate that paper…

Bill

Hi,

[quote=“bigbigben”]The first line in this piece of code is :
moments=compute_model_moments(dr,M_,options,_)

Should it not be moments=compute_model_moments(dr,M_,options_)?
[/quote]

Yes. Thanks for reporting this bug.

Best, Stéphane.