Page 1 of 1

Gertler&Karadi (2011) credit policy implementation

PostPosted: Sat May 20, 2017 10:58 am
by Keynesian94
Hi,
I'm relatively new to dynare, so I was hoping to get some help from this forum.
I'm currently implementing a countercyclical capital requirement into Gertler & Karadi (2011). I downloaded the mod file from the macro model database, but I can't get the credit policy to run inside dynare.

EDIT: I've just tried running it using the Model Database procedure (in which you can select the model, shocks etc.)
The problem is that I HAVE to choose a monetary policy rule, and theirs is not on the list.
Eventually, I want to change some of the equations of the model, and see how the results are different between a situation WITH and WITHOUT the credit policy. Any suggestions?
Thanks in advance!

Re: Gertler&Karadi (2011) credit policy implementation

PostPosted: Mon May 22, 2017 12:29 pm
by federico
Hi,

In Peter Keradi's website you can find their original code.

Hope it helps

Federico

Re: Gertler&Karadi (2011) credit policy implementation

PostPosted: Mon May 22, 2017 12:39 pm
by Keynesian94
Thanks for your reply!
I also tried to work with their code. My problem is that ''content'' is there, but the .mod files are empty.
I do not understand how to run the code from the different files (which are .m files, like DSGE_SteadyState.m)
I guess I have to combine them somehow?

Re: Gertler&Karadi (2011) credit policy implementation

PostPosted: Mon May 22, 2017 3:46 pm
by jpfeifer
Have you looked into the replication folder of the MMB?

Re: Gertler&Karadi (2011) credit policy implementation

PostPosted: Mon May 22, 2017 4:47 pm
by federico
If I remember correctly, there is a folder
called "dynare" that contains the files that you need.

Otherwise there are several matlab function (mainly FA_func and FA_main) that should
create the dynare file that you need.

Re: Gertler&Karadi (2011) credit policy implementation

PostPosted: Wed May 24, 2017 1:28 pm
by Keynesian94
Thanks! I figured it out.
Indeed, the FA_Main file contains the elements to run it, I just hadn't figured out that you should run it in matlab instead of dynare.