# Hasnu Dalgic Paper IRFS (thir order approximation)

**URL:** <https://forum.dynare.org/t/hasnu-dalgic-paper-irfs-thir-order-approximation/28108>\
**Category:** Replication Attempts\
**Created:** [25 November 2025 11:36 UTC](https://forum.dynare.org/t/hasnu-dalgic-paper-irfs-thir-order-approximation/28108 "2025-11-25T11:36:33Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josuecardenass12](https://forum.dynare.org/letter_avatar_proxy/v4/letter/j/d2c977/32.png) [@Josuecardenass12](https://forum.dynare.org/u/Josuecardenass12)\
**Post date:** [25 November 2025 11:36 UTC](https://forum.dynare.org/t/hasnu-dalgic-paper-irfs-thir-order-approximation/28108/1 "2025-11-25T11:36:33Z")

</div>

i need some help. I was trying to replicate the Hasnu dalgic ‘s paper Financial dollarization in emerging economies: an insurance arrangement, and I didnt get the steady state. In the solution, Dalgic wrote that he used a third order approximation and I did it in Dynare but I cant get that. When I run the code, Dynare tell me that it is a problem with a initial values. I would thank that you can help me with the code because I have to send my paper until 1st of december.

[hasnu\_dalgic2.mod](https://forum.dynare.org/uploads/short-url/nGo4blCAEeKwhIDOkNZE4o8iqS7.mod) (4.7 KB)

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [25 November 2025 17:05 UTC](https://forum.dynare.org/t/hasnu-dalgic-paper-irfs-thir-order-approximation/28108/2 "2025-11-25T17:05:55Z")

</div>

Your file does not even define the names of the parameters.

---

<div class="post-metadata">

**Author:** ![Josuecardenass12](https://forum.dynare.org/letter_avatar_proxy/v4/letter/j/d2c977/32.png) [@Josuecardenass12](https://forum.dynare.org/u/Josuecardenass12)\
**Post date:** [25 November 2025 17:11 UTC](https://forum.dynare.org/t/hasnu-dalgic-paper-irfs-thir-order-approximation/28108/3 "2025-11-25T17:11:12Z")

</div>

Sorry, I forgot to copy that. I will send you the complete file. Please, help me, I was trying but I could get any results just doesnt run.

[hasnu\_dalgic2.mod](https://forum.dynare.org/uploads/short-url/xJ687aMj7024Rr1fN7Gbd8hKSlh.mod) (5.9 KB)

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [25 November 2025 17:27 UTC](https://forum.dynare.org/t/hasnu-dalgic-paper-irfs-thir-order-approximation/28108/4 "2025-11-25T17:27:46Z")

</div>

One issue are initial values. `pi=0` is infeasible as it results in a division by 0. But for a model of that type, you almost surely need to approach the steady state analytically.

---

<div class="post-metadata">

**Author:** ![Josuecardenass12](https://forum.dynare.org/letter_avatar_proxy/v4/letter/j/d2c977/32.png) [@Josuecardenass12](https://forum.dynare.org/u/Josuecardenass12)\
**Post date:** [25 November 2025 17:36 UTC](https://forum.dynare.org/t/hasnu-dalgic-paper-irfs-thir-order-approximation/28108/5 "2025-11-25T17:36:08Z")

</div>

> [@jpfeifer](#):
>
> 1. But for a model of that type, you almost surely need to approach the steady state analytically.

Is it not possible to find it in Dynare? If I change the initial values, is there a possibility to find the steady state? Please

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [25 November 2025 19:52 UTC](https://forum.dynare.org/t/hasnu-dalgic-paper-irfs-thir-order-approximation/28108/6 "2025-11-25T19:52:53Z")

</div>

In theory, that is possible. But that requires the good initial values and absolutely no mistakes in the model setup. For complicated models like the one you are dealing with, that is unlikely. In that case, computing the steady state analytically provides an important cross-check.

---

<div class="post-metadata">

**Author:** ![Josuecardenass12](https://forum.dynare.org/letter_avatar_proxy/v4/letter/j/d2c977/32.png) [@Josuecardenass12](https://forum.dynare.org/u/Josuecardenass12)\
**Post date:** [26 November 2025 00:09 UTC](https://forum.dynare.org/t/hasnu-dalgic-paper-irfs-thir-order-approximation/28108/7 "2025-11-26T00:09:08Z")

</div>

How can I get the steady state of the financial frictions? I could get the steady state of the model, excepto for the entrepreneur decision. Can you help me with that, please?

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [26 November 2025 01:27 UTC](https://forum.dynare.org/t/hasnu-dalgic-paper-irfs-thir-order-approximation/28108/8 "2025-11-26T01:27:01Z")

</div>

Without more context, it is impossible to tell. What is the problem you are facing in solving that problem?

---

<div class="post-metadata">

**Author:** ![Josuecardenass12](https://forum.dynare.org/letter_avatar_proxy/v4/letter/j/d2c977/32.png) [@Josuecardenass12](https://forum.dynare.org/u/Josuecardenass12)\
**Post date:** [26 November 2025 03:35 UTC](https://forum.dynare.org/t/hasnu-dalgic-paper-irfs-thir-order-approximation/28108/9 "2025-11-26T03:35:21Z")

</div>

![WhatsApp Image 2025-11-25 at 17.33.38](https://forum.dynare.org/uploads/default/original/3X/4/8/4808b25845cb70844a8d4541e2c6ea3e901cf08a.jpeg)This is the problem that I am facing. I think that I can solve this in Matlab, not in Dynare. There are many functions that doesnt have steady state. How can I do that?

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [27 November 2025 12:12 UTC](https://forum.dynare.org/t/hasnu-dalgic-paper-irfs-thir-order-approximation/28108/10 "2025-11-27T12:12:29Z")

</div>

1. In steady state these equations should considerably simplify.
2. You can use a steady state file to call a Matlab solver for solving these few equations. There are various posts on that topic.
3. What do you mean with

> [@Josuecardenass12](#):
>
> There are many functions that doesnt have steady state

?
