# HANK and SAM replication

**URL:** <https://forum.dynare.org/t/hank-and-sam-replication/12693>\
**Category:** Replication Attempts\
**Created:** [29 October 2018 17:26 UTC](https://forum.dynare.org/t/hank-and-sam-replication/12693 "2018-10-29T17:26:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rubyss](https://forum.dynare.org/letter_avatar_proxy/v4/letter/r/c89c15/32.png) [@rubyss](https://forum.dynare.org/u/rubyss)\
**Post date:** [29 October 2018 17:26 UTC](https://forum.dynare.org/t/hank-and-sam-replication/12693/1 "2018-10-29T17:26:32Z")

</div>

Hello! I am a beginner of DYNARE.

Do someone here already try to replicate a HANK and SAM model by using DYNARE??  
(Macroeconomic Fluctuations with HANK and SAM: an Analytical Approach: Mavn and Sterk (2018))

Is it possible to replicate their model by using DYNARE?

Many thanks!

---

<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:** [30 October 2018 08:00 UTC](https://forum.dynare.org/t/hank-and-sam-replication/12693/2 "2018-10-30T08:00:30Z")

</div>

There are ways to solve these models with Dynare-based toolboxes like the one of Thomas Winberry. But with its default version you cannot solve heterogeneous agent models.

---

<div class="post-metadata">

**Author:** ![rubyss](https://forum.dynare.org/letter_avatar_proxy/v4/letter/r/c89c15/32.png) [@rubyss](https://forum.dynare.org/u/rubyss)\
**Post date:** [30 October 2018 10:03 UTC](https://forum.dynare.org/t/hank-and-sam-replication/12693/3 "2018-10-30T10:03:08Z")

</div>

Thank you for your reply!!  
Isn’t Ravn and Sterk (2018) replicable using DYNARE? They argue their model is tractable…

---

<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:** [30 October 2018 11:10 UTC](https://forum.dynare.org/t/hank-and-sam-replication/12693/4 "2018-10-30T11:10:53Z")

</div>

Tractable does not automatically imply that it can be solved using perturbation techniques.

---

<div class="post-metadata">

**Author:** ![rjapp](https://forum.dynare.org/user_avatar/forum.dynare.org/rjapp/32/9823_2.png) [@rjapp](https://forum.dynare.org/u/rjapp)\
**Post date:** [2 July 2020 07:56 UTC](https://forum.dynare.org/t/hank-and-sam-replication/12693/6 "2020-07-02T07:56:26Z")

</div>

Thumbs up for the Winberry algorithm. I found that it is quite doable to nest a NK framework inside his Krusell and Smith shell. I do not know Ravn and Sterk (2018), but if you are interested you might want to lookup also algoritms such as Reiters and Den Haan. If the model is not too rich should be doable, up to some simplifications.

---

<div class="post-metadata">

**Author:** ![heroluotao](https://forum.dynare.org/letter_avatar_proxy/v4/letter/h/e36b37/32.png) [@heroluotao](https://forum.dynare.org/u/heroluotao)\
**Post date:** [21 November 2024 07:48 UTC](https://forum.dynare.org/t/hank-and-sam-replication/12693/7 "2024-11-21T07:48:23Z")

</div>

Can you share the steps and methods? Thank you very much for your sharing
