# Unconditional versus conditional Welfare measure

**URL:** <https://forum.dynare.org/t/unconditional-versus-conditional-welfare-measure/12467>\
**Category:** General DSGE Modeling\
**Created:** [22 September 2018 13:26 UTC](https://forum.dynare.org/t/unconditional-versus-conditional-welfare-measure/12467 "2018-09-22T13:26:04Z")\
**Posts on this page:** 12\
**Page:** 2

<div class="post-metadata">

**Author:** ![Deb](https://forum.dynare.org/letter_avatar_proxy/v4/letter/d/ecccb3/32.png) [@Deb](https://forum.dynare.org/u/Deb)\
**Post date:** [6 April 2024 19:48 UTC](https://forum.dynare.org/t/unconditional-versus-conditional-welfare-measure/12467/21 "2024-04-06T19:48:16Z")

</div>

Thanks a lot Prof. Stéphane.

---

<div class="post-metadata">

**Author:** ![Deb](https://forum.dynare.org/letter_avatar_proxy/v4/letter/d/ecccb3/32.png) [@Deb](https://forum.dynare.org/u/Deb)\
**Post date:** [7 April 2024 18:01 UTC](https://forum.dynare.org/t/unconditional-versus-conditional-welfare-measure/12467/22 "2024-04-07T18:01:33Z")

</div>

Dear Prof. Stéphane,

I am getting welfare difference in order of thousands and leading to consumption equivalent values which are extremely large ( in the order of 10^18). This seems clearly unreasonable but I am unable to figure out whats wrong. Is there is any textbook troubleshooting for this? Thanks in advance!

---

<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:** [7 April 2024 18:07 UTC](https://forum.dynare.org/t/unconditional-versus-conditional-welfare-measure/12467/23 "2024-04-07T18:07:39Z")

</div>

Please provide the updated set of files, ideally in a zip-file.

---

<div class="post-metadata">

**Author:** ![Deb](https://forum.dynare.org/letter_avatar_proxy/v4/letter/d/ecccb3/32.png) [@Deb](https://forum.dynare.org/u/Deb)\
**Post date:** [8 April 2024 09:51 UTC](https://forum.dynare.org/t/unconditional-versus-conditional-welfare-measure/12467/24 "2024-04-08T09:51:46Z")

</div>

Dear Prof. Pfeifer,

Please find the attached zip file of the code  
[try\_initval\_forum.zip](https://forum.dynare.org/uploads/short-url/629JagjlQYB0zrE7TGvqDAKMtSA.zip) (5.2 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:** [9 April 2024 13:09 UTC](https://forum.dynare.org/t/unconditional-versus-conditional-welfare-measure/12467/25 "2024-04-09T13:09:13Z")

</div>

Why exactly are you comparing `dSPR` to `recur_welfare`?

---

<div class="post-metadata">

**Author:** ![Deb](https://forum.dynare.org/letter_avatar_proxy/v4/letter/d/ecccb3/32.png) [@Deb](https://forum.dynare.org/u/Deb)\
**Post date:** [13 April 2024 19:55 UTC](https://forum.dynare.org/t/unconditional-versus-conditional-welfare-measure/12467/26 "2024-04-13T19:55:12Z")

</div>

Sorry Prof. Pfeifer, I did not understand your question. Can you please point to which equation your are referring to? In my model, dSPR is the deposit spread from the risk-free rate.

---

<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:** [14 April 2024 06:26 UTC](https://forum.dynare.org/t/unconditional-versus-conditional-welfare-measure/12467/27 "2024-04-14T06:26:25Z")

</div>

You hard-coded the position of the variables

```auto
V0 = oo_.steady_state(44);
V1 = oo_.steady_state(46);

```

One of them is `dSPR`. You should use syntax like

```auto
oo_.steady_state(strmatch('recur_welfare',M_.endo_names,'exact'))

```

---

<div class="post-metadata">

**Author:** ![Deb](https://forum.dynare.org/letter_avatar_proxy/v4/letter/d/ecccb3/32.png) [@Deb](https://forum.dynare.org/u/Deb)\
**Post date:** [14 April 2024 08:13 UTC](https://forum.dynare.org/t/unconditional-versus-conditional-welfare-measure/12467/28 "2024-04-14T08:13:39Z")

</div>

Thanks a lot Prof. Pfeifer. I have changed the code. Unfortunately, the problem of welfare still persists.

---

<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:** [14 April 2024 08:14 UTC](https://forum.dynare.org/t/unconditional-versus-conditional-welfare-measure/12467/29 "2024-04-14T08:14:25Z")

</div>

What exactly is the problem now? Also, please provide the updated codes.

---

<div class="post-metadata">

**Author:** ![Deb](https://forum.dynare.org/letter_avatar_proxy/v4/letter/d/ecccb3/32.png) [@Deb](https://forum.dynare.org/u/Deb)\
**Post date:** [14 April 2024 09:19 UTC](https://forum.dynare.org/t/unconditional-versus-conditional-welfare-measure/12467/30 "2024-04-14T09:19:36Z")

</div>

The consumption equivalent welfare gains are in the order of 10^19. Is this something that is normal?  
[try\_initval\_forum.zip](https://forum.dynare.org/uploads/short-url/x8CRQKGe0sOjeuDuSHKXk5UForH.zip) (5.2 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:** [14 April 2024 09:53 UTC](https://forum.dynare.org/t/unconditional-versus-conditional-welfare-measure/12467/31 "2024-04-14T09:53:57Z")

</div>

You need to manually inspect the steady states. You have a welfare difference of about 3000 points. That’s huge and needs to be explained by the components that make up welfare.

---

<div class="post-metadata">

**Author:** ![Deb](https://forum.dynare.org/letter_avatar_proxy/v4/letter/d/ecccb3/32.png) [@Deb](https://forum.dynare.org/u/Deb)\
**Post date:** [16 April 2024 08:26 UTC](https://forum.dynare.org/t/unconditional-versus-conditional-welfare-measure/12467/32 "2024-04-16T08:26:50Z")

</div>

Indeed, fixing the steady state solved the problem. Thanks a lot Prof. Pfeifer.

[Previous page](https://forum.dynare.org/t/unconditional-versus-conditional-welfare-measure/12467.md?page=1)
