## Coding a nonlinear interest rate schedule

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.

### Coding a nonlinear interest rate schedule

Hi
I am interested in setting up a nonlinear interest rate schedule in dynare. Here is the problem. I want to formulate an interest rate schedule which takes different values for different levels of deposit. If the deposit level is lower than Dbar, the interest rate is i_1 and if it is higher Dbar the interst rate i_2. I would like to make it more general three tier or four tier system where there two or three such thresholds.
Any idea how I can do this? I foresee multiple steady states for interest rate which could be problematic in implementing in dynare. Any help or any reference to past coding will be extremely helpful.

PB
parantap

Posts: 31
Joined: Tue Oct 01, 2013 11:58 pm

### Re: Coding a nonlinear interest rate schedule

parantap wrote:Hi
I am interested in setting up a nonlinear interest rate schedule in dynare. Here is the problem. I want to formulate an interest rate schedule which takes different values for different levels of deposit. If the deposit level is lower than Dbar, the interest rate is i_1 and if it is higher Dbar the interst rate i_2. I would like to make it more general three tier or four tier system where there two or three such thresholds.
Any idea how I can do this? I foresee multiple steady states for interest rate which could be problematic in implementing in dynare. Any help or any reference to past coding will be extremely helpful.

PB

The common problem
annawarren

Posts: 1
Joined: Mon Jul 03, 2017 12:37 pm

### Re: Coding a nonlinear interest rate schedule

If you are thinking about stochastic simulations, this will not be feasible due to the discontinuities introduced by the steps.
------------
Johannes Pfeifer
University of Cologne
jpfeifer

Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

### Re: Coding a nonlinear interest rate schedule

No. I will a deterministic simulation. Is there any code which can guve me some guidance?
parantap

Posts: 31
Joined: Tue Oct 01, 2013 11:58 pm

### Re: Coding a nonlinear interest rate schedule

Stochastic simulation could be done with extended path (a sequence of perfect foresight simulation). The problem here is not the non differentiability introduced by the steps. The issue is that depending on the regime, the steady state of your model (the target of the perfect foresight solver) moves. This is not possible with regular Dynare, You have to hack the Matlab code to write a solver specific to this model.

Best,
Stéphane.
Université du Maine, GAINS and DynareTeam