Vlcek/Roger (2011) model

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Vlcek/Roger (2011) model

Postby somekindofgrinder » Tue Apr 02, 2013 10:39 am

Good evening everybody.
I am looking for the code of the model described in the paper of Vlcek/Roger (2011) ("Macroeconomic Costs of Higher Bank Capital and Liquidity Requirements") in Dynare.
I am requesting this code in order to locate the exact expressions of the framework. More specifically,I have the Dynare code of the Gerali et al (2010) model and I am looking to augment it with the extra equations describing government consumption,liquidity and bond riskiness and then find the steady state.
I have made an effort myself,but the addition of the extra equations and parameters has moved the steady state far from the Gerali model steady state.
If it is helpful,I will both versions of the codes later in the day,so hopefully one can tell me what can be done (apart from checking the residuals of the equations-I have done that already and tried changing some of the calibrated parameters but residuals do not drop and convergence does not occur).

Desperately looking to hearing from you!
somekindofgrinder
 
Posts: 6
Joined: Wed Nov 21, 2012 4:27 pm

Re: Vlcek/Roger (2011) model

Postby somekindofgrinder » Mon Apr 15, 2013 7:17 pm

Ok,so its time I shared a bit of my code. Hopefully someone will have an idea of what is going wrong.

I now try to build the Vlcek/Roger model through the Gerali framework starting by simply adding a liquidity parameter to no more than 3-4 equations.
I then set the liquidity parameter to zero. Obviously this means that since all other parameters are the same,both models are the same and both models should converge.
However,this does not occur with the liquidity variant!!! (The pure Gerali model runs no matter the residuals).
Can someone please share a bit of his knowledge on the subject?

Thank you in advance.
Attachments
GNSS_BK_Basel_II_VR_variant.mod
The framework with an added liquidity factor
(27.71 KiB) Downloaded 447 times
GNSS_BK_Basel_II_martios.mod
The original Gerali framework
(26.93 KiB) Downloaded 450 times
somekindofgrinder
 
Posts: 6
Joined: Wed Nov 21, 2012 4:27 pm

Re: Vlcek/Roger (2011) model

Postby federico » Tue Apr 16, 2013 9:34 am

Hi,
I know very well both Gerali and Vlceck/Roger model.
I dowload the two files in attachment see if i can help.
I very busy right now (like everyone else of course) so i can't promise anythings .
federico
 
Posts: 68
Joined: Fri Mar 30, 2012 4:46 pm

Re: Vlcek/Roger (2011) model

Postby somekindofgrinder » Thu Apr 25, 2013 10:07 am

Good morning to you all.
My question is not going to be a strictly technical one (it might need a bit of macro insight).
So,I finally created a version resembling the Vlcek/Roger model from the Gerali model posted above that converges without problems (thanks to federico!)
Not all is going well though.
First of all,the increase of the liquidity ratio in the model (eta) results in an increase of the interest ratio spread (spr_b)and the economy's output (y1),which contradicts the original Gerali model (and the corresponding bibliography).
Second, the theoretical standard deviation of the output also increases when the capital ratio (vb_ss) and/or the liquidity ratio increases ,which also does not occur in the original Gerali model.

The models are calibrated as closely as possible.
Any ideas about why this happens?
I would be grateful if someone could help me solve this and maybe this could prove useful to others wanting to have a similar model for their experiments.
Attachments
GNSS_P3_version2.mod
The augmented code,containing a liquidity ratio
(26.56 KiB) Downloaded 305 times
somekindofgrinder
 
Posts: 6
Joined: Wed Nov 21, 2012 4:27 pm

Re: Vlcek/Roger (2011) model

Postby somekindofgrinder » Thu Jun 27, 2013 9:32 am

Greetings to all.

Continuing the work on this model, I would like to ask a further question.
What is the correct way of modelling the impact of a NEGATIVE shock to the output?
To proxy this, I simply changed the sign of the most predominant shock to the output (e_Ae = the output coefficient shock/tech shock) to a negative one.
However,results of the steady state variables and their volatilities did not change.

So,I guess my method is not correct.
Any ideas?
somekindofgrinder
 
Posts: 6
Joined: Wed Nov 21, 2012 4:27 pm

Re: Vlcek/Roger (2011) model

Postby hrdg » Thu Jun 27, 2013 9:51 am

hi, your negative shock way sounds OK, can you post your code?

Vlcek/Roger (2011) model:the increase of the liquidity ratio in the model (eta) results in an increase of the economy's output (y1), have you solved this problem?
i find some contradictions in Vlcek/Roger (2011) model,
1.if not funding outside,namely changing the assets portfolio, the increase in Bond should cause the decrease in Loan, but not the exact quantity in the Vlcek/Roger (2011) model
2.if funding outside, the increase in Bond should cause (or be cause by) the capital and deposite increase, but not the case in the Vlcek/Roger (2011) model,

and the modeling is not working by his formula, in your opinion, what should be done ?

thank your for your code! it's not easy
hrdg
 
Posts: 6
Joined: Fri Jul 27, 2012 5:23 am

Re: Vlcek/Roger (2011) model

Postby federico » Thu Jun 27, 2013 2:34 pm

The way in which you model the negative tech shock is fine.
The fact that the volatilities and the SS are not affect is good too.
The term e_ae does not affect the SS and if i understood correctly you do not change the size of the shock.
The only thing you should see are the IRFs in the opposite direction
federico
 
Posts: 68
Joined: Fri Mar 30, 2012 4:46 pm

Re: Vlcek/Roger (2011) model

Postby hrdg » Thu Jul 04, 2013 11:57 am

hello, exp(K_b) should be dropped? or the interest rate should be like (exp(r_bh) +1)
/* Overall activity*/

exp(j_b) = + exp(r_bh) * exp(b_h)
+ exp(r_be) * exp(b_e)
+ exp(r_t) * exp(B)*eta
- exp(r_d) * exp(d_b)
- exp(K_b)- k_kb/2 * ( ((exp(K_b) / (exp(B))) - exp(v_b) ) ^2) * exp(K_b);
%%% /*OVERALL BANK PROFITS*/ /* 268-271 adjustment cost for the bank*/
hrdg
 
Posts: 6
Joined: Fri Jul 27, 2012 5:23 am

Re: Vlcek/Roger (2011) model

Postby somekindofgrinder » Thu Jul 04, 2013 10:46 pm

Indeed both these models are a bummer. The only thing that I can answer you with a great deal of certainty is that the only way to make the output drop when the capital or liquidity increases is finding the correct value for the pi_share.

Either way,I still have problems with these models myself. Now I cannot raise the vi_ss from 0,09 to lets say 0,14! It screws the convergence.
It only works for small incremental changes.
After a year or so, I think that only the authors could provide reasonable insight-though all papers are obscure and the Vlcek/Roger model was morevoer written in IRISToolbox.
somekindofgrinder
 
Posts: 6
Joined: Wed Nov 21, 2012 4:27 pm

Re: Vlcek/Roger (2011) model

Postby hrdg » Fri Jul 05, 2013 3:11 pm

Thank you so much!!
maybe i can help you with this problem(if my comprehensive is OK ):"Now I cannot raise the vi_ss from 0,09 to lets say 0,14! It screws the convergence."
see your PM, i am not sure my way is ok, give me some advice.
hrdg
 
Posts: 6
Joined: Fri Jul 27, 2012 5:23 am

Re: Vlcek/Roger (2011) model

Postby hrdg » Sat Jul 13, 2013 3:40 am

i modified your code

Code: Select all
varexo_det eta ;
shocks;
var eta;
periods   1   2   3   4   5   6   7   8 9:60;//1   2   3   4   5   6   7   8 9:60;
values 0.2   0.21   0.22   0.23   0.24   0.25   0.26   0.27 0.27;
end;


use y instead of all y1, and delete following lines

Code: Select all
exp(c_i) +
exp(q_h) * (exp(h_i) - exp(h_i(-1))) +
( 1 + exp(r_bh(-1))) * exp(b_i(-1)) / exp(pi) =
exp(w_i) *  exp(l_i) + exp(b_i) ;          %%%


but in oo_.forecast.Mean, the result is not like roger, can you help?
hrdg
 
Posts: 6
Joined: Fri Jul 27, 2012 5:23 am

Re: Vlcek/Roger (2011) model

Postby rickardo » Mon Jul 15, 2013 1:30 pm

Hi all,

I apologize if these few questions appear overly simplistic

I am in the process of running the Gerali (2010) model - and have derived all equations, however I find some differences between the code posted on here and what I have.

Is it possible to gain clarification around

1: why in both the patient and impatient households, the shocks are multiplied by a parameter J (0.203) - as I saw no reference to this in the paper itself.
2: exp(y1) or the variable y1 seems to be a modified version of y - is this supposed to be a Steady State value of y or something else?
3. lastly - some variables in the steady state seem to be provided that are not particularly mentioned in the paper - such as r_d_ss, r_t_ss - where do these equations come from?

Thank you for the help!
rickardo
 
Posts: 6
Joined: Mon Jul 15, 2013 1:23 pm

Re: Vlcek/Roger (2011) model

Postby somekindofgrinder » Mon Jul 15, 2013 4:05 pm

Good evening.
I have to note that this is not the default Gerali calibration.
J is the housing parameter,which affects qh=housing wealth.
y1 is the intermediate output. You may also find it as y_e=enterpreneurial output
r_d_ss and r_t_ss are steady state values of the deposit and the policy rate,respectively.
You can calculate them by modifying the respective markups .
somekindofgrinder
 
Posts: 6
Joined: Wed Nov 21, 2012 4:27 pm

Re: Vlcek/Roger (2011) model

Postby rickardo » Thu Sep 19, 2013 12:22 pm

Hi all,

I was just wondering if anyone has been able to replicate that IRFs in Gerali following a financial (negative capital) shock?

I have played around with the code however are there any major adjustments that must be made besides including the shock into the Bank liabilities?
rickardo
 
Posts: 6
Joined: Mon Jul 15, 2013 1:23 pm

Re: Vlcek/Roger (2011) model

Postby federico » Thu Sep 19, 2013 3:22 pm

At page 135 of Gerali's paper in the footnote they say

"We modify the model introducing, in the corresponding accumulation equation, the possibility of
an unexpected contraction in bank capital Kb_t . The persistence of the shock is 0.95; the other parameters
are set at the median of their posterior distribution."

Basicly you have to modify bank capital accumulation equation in this way

K^(b)_t = (1 - delta_b)* epsilon_kb*K^(b)_(t-1) + j^(b)_(t-1)
federico
 
Posts: 68
Joined: Fri Mar 30, 2012 4:46 pm

Next

Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 12 guests