Financial accelerator

Hello, I try to turn off the financial accelerators by setting the parameters that link them to zero however when I do my impulse responses whether it is with or without financial frictions they are the same impulse responses.
Can you give me a hand please.
I am attaching my mod file with financial frictions.
[
fondamental.mod (3.7 KB)

You need to provide more details. How can I see that?

In fact, I want to show that the contribution of financial frictions in my DSGE model of the CEMAC allows me to have a better information on the macroeconomic variables which are the production, the consumption, the investment and the interest rate. Therefore, I wanted to make a DSGE model with financial frictions and a DSGE model without frictions, I simply set the parameter that represents the risk premium for external financing to 0 to cancel its equation and then I set the omicron parameter to 1 to cancel the collateral constraint and I did not touch the other parameters I left them at their values as if they were with financial frictions. I send you the two mod files one with financial frictions and the other without financial frictions.
Model without ff.mod (3.7 KB)
Model with ff.mod (3.7 KB)

In the model without financial frictions, the parameter representing the risk premium is set to zero, it is written as el=0 to cancel the risk premium equation and the omicron parameter is set to 1 to cancel the collateral constraint equation

You should check your implementation. It seems changing the two parameters does not do anything in your model. You should try to find out why.

Okay, and please sir, could you tell me how to represent two irfs of two DSGE models with and without financial accelerator in the same graph, I want to look at the amplitudes of the irfs, if they are also the same. Thanks

Could you show me the method for plotting the IRFs of two different models, one with financial frictions and the other without financial frictions on the same variable against the same shock on the same graph please

Have a look at

Thank pr jpfeifer.

Hello professor, please I need your help, you could correct my driver file and tell me what is preventing it from working properly.
fondamentaljojo.mod (3.8 KB)
fondamental.mod (3.8 KB)
driver_fondamental.m (1013 Bytes)

Within your mod-file, you did not request output for Y:

stoch_simul(order=1,irf=50,nograph) R R_SPREAD R_IB R_B R_D PRIM;

A more compact file would be

clear
clc
close all
dynare fondamental.mod
irf_1=oo_.irfs;
dynare fondamentaljojo.mod
irf_2=oo_.irfs;
ending_cell={'_epsA'};
for ii=1:length(ending_cell)
    HOR=1:options_.irf;
    var={'Y','C','C_R','C_NR','T_NR','W','G','I','pi','MC','K','A','LH','Q','R_D','R_Q','R_B','N','U','B','MBS_CoB','M','HC','R_SPREAD','R_IB','R','IB','X','Lamda','m','PRIM'};
    for jj=1:length(var)
        subplot(5,5,jj)
        plot(HOR,irf_1.([var{1,jj},ending_cell{1,ii}]),'LineWidth',5);
        plot(HOR,irf_2.([var{1,jj},ending_cell{1,ii}]),'LineWidth',5);
        grid;
        title(['Reponse de  ',var{1,jj},'  Au choc  ',ending_cell{1,ii}] )
        legend('Sans frictions financières','Avec frictions financières')
        xlabel('Trimestres');
        ylabel('IRFs');
    end
end

Thank professor

Hello professor, I am facing a problem, when I run the driver I can’t get in the same graph the irfs with financial frictions and without financial frictions, I don’t know why, could you help me with my driver file please.

Hello professor, I am facing a problem, when I run the driver I can’t get in the same graph the irfs with financial frictions and without financial frictions, I don’t know why, could you help me with my driver file please.
driver_fondamental.m (897 Bytes)

Please also provide the updated mod-file.

The update mod-file :
fondamental.mod (3.8 KB)
fondamentaljojo.mod (3.8 KB)

Use

clear
clc
close all
dynare fondamental.mod
irf_1=oo_.irfs;
dynare fondamentaljojo.mod
irf_2=oo_.irfs;
ending_cell={'_epsA'};
for ii=1:length(ending_cell)
    HOR=1:options_.irf;
    var={'Y','C','C_R','C_NR','T_NR','W','G','I','pi','MC','K','A','LH','Q','R_D','R_Q','R_B','N','U','B','MBS_CoB','M','HC','R_SPREAD','R_IB','R','IB','X','Lamda','m','PRIM'};
    for jj=1:length(var)
        subplot(6,6,jj)
        hh1=plot(HOR,irf_1.([var{1,jj},ending_cell{1,ii}]),'LineWidth',5);
        hold on
        hh2=plot(HOR,irf_2.([var{1,jj},ending_cell{1,ii}]),'LineWidth',5);
        grid;
        title(['Reponse de  ',var{1,jj},'  Au choc  ',ending_cell{1,ii}] )
        if jj==1
            legend([hh1;hh2],'Sans frictions financières','Avec frictions financières')
        end
        xlabel('Trimestres');
        ylabel('IRFs');
    end
end

with
fondamental.mod (3.7 KB)
fondamentaljojo.mod (3.7 KB)

This is what it says:
Could you please help me professor
I use MATLAB ans dynare
Uploading: IMG_20221220_121329.jpg…
Uploading: IMG_20221220_121320.jpg…

Your upload was not successful.