IDEAS home Printed from https://ideas.repec.org/p/cpm/dynare/088.html

Rich Heterogeneity in Dynare 7: A Practical Description

Author

Listed:
  • Rion, Normann

Abstract

Dynare 7 ships a toolkit for solving heterogeneous-agent models: a .mod syntax declaring a heterogeneity dimension alongside the standard aggregate blocks, commands that load or compute the stationary equilibrium, and a first-order solver whose output is the sequence-space Jacobian of the aggregate equilibrium path with respect to the aggregate innovations, the array dr.G. This document is the toolkit’s mathematical companion, and it reads the methods it implements as one object: the state-space treatment of the heterogeneous block due to Bhandari et al. [2023], the sequence-space assembly of Auclert et al. [2021], and the sequence-space determinacy theory of Auclert et al. [2025], recast through the theory of linear time-invariant systems and Toeplitz operators. After stating the class of models, the syntax, and the steady-state algorithms, I develop the first-order theory behind the solver, the backward operator of the heterogeneous block, the transfer operator moving the cross-section, and their assembly into the sequence-space Jacobian, and read the state-space recursion of Bhandari et al. [2023] and the sequence-space Jacobian of Auclert et al. [2021] as two readings of one Fréchet derivative, with the borrowing-constraint atom priced by a weak-derivative and finite-element reading that never forces a derivative onto a Dirac at first order. The same continuous objects carry two extensions the toolkit does not yet ship. The first is existence and determinacy: the criterion of Auclert et al. [2025], established there on the discretized block, is shown to hold for the continuous operators, and the winding-number verdict read off the discretized symbol is certified to be the continuous model’s by a finite-sample bound. The second is a perturbation cascade that carries the second-order heterogeneous construction of Bhandari et al. [2023] to arbitrary order in the sequence space, the one Wiener–Hopf factorization computed at the first order serving every order.

Suggested Citation

  • Rion, Normann, 2026. "Rich Heterogeneity in Dynare 7: A Practical Description," Dynare Working Papers 88, CEPREMAP.
  • Handle: RePEc:cpm:dynare:088
    as

    Download full text from publisher

    File URL: https://www.dynare.org/wp-repo/dynarewp088.pdf
    File Function: Main text
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Stephen M. Robinson, 1980. "Strongly Regular Generalized Equations," Mathematics of Operations Research, INFORMS, vol. 5(1), pages 43-62, February.
    2. Nicolas Coeurdacier & Hélène Rey & Pablo Winant, 2011. "The risky steady state," SciencePo Working papers hal-00972801, HAL.
    3. repec:spo:wpmain:info:hdl:2441/c8dmi8nm4pdjkuc9g704ld0h3 is not listed on IDEAS
    4. Reiter, Michael, 2009. "Solving heterogeneous-agent models by projection and perturbation," Journal of Economic Dynamics and Control, Elsevier, vol. 33(3), pages 649-665, March.
    5. S. Rao Aiyagari, 1994. "Uninsured Idiosyncratic Risk and Aggregate Saving," The Quarterly Journal of Economics, President and Fellows of Harvard College, vol. 109(3), pages 659-684.
    6. Ram P. Kanwal, 1998. "Generalized Functions Theory and Technique," Springer Books, Springer, edition 0, number 978-1-4684-0035-9, January.
    7. Schmitt-Grohe, Stephanie & Uribe, Martin, 2004. "Solving dynamic general equilibrium models using a second-order approximation to the policy function," Journal of Economic Dynamics and Control, Elsevier, vol. 28(4), pages 755-775, January.
    8. Onatski, Alexei, 2006. "Winding number criterion for existence and uniqueness of equilibrium in linear rational expectations models," Journal of Economic Dynamics and Control, Elsevier, vol. 30(2), pages 323-345, February.
    9. Nicolas Coeurdacier & Helene Rey & Pablo Winant, 2011. "The Risky Steady State," American Economic Review, American Economic Association, vol. 101(3), pages 398-401, May.
    10. Young, Eric R., 2010. "Solving the incomplete markets model with aggregate uncertainty using the Krusell-Smith algorithm and non-stochastic simulations," Journal of Economic Dynamics and Control, Elsevier, vol. 34(1), pages 36-41, January.
    11. Lan, Hong & Meyer-Gohde, Alexander, 2013. "Solving DSGE models with a nonlinear moving average," Journal of Economic Dynamics and Control, Elsevier, vol. 37(12), pages 2643-2667.
    12. Per Krusell & Anthony A. Smith & Jr., 1998. "Income and Wealth Heterogeneity in the Macroeconomy," Journal of Political Economy, University of Chicago Press, vol. 106(5), pages 867-896, October.
    13. Blanchard, Olivier Jean & Kahn, Charles M, 1980. "The Solution of Linear Difference Models under Rational Expectations," Econometrica, Econometric Society, vol. 48(5), pages 1305-1311, July.
    14. repec:spo:wpecon:info:hdl:2441/c8dmi8nm4pdjkuc9g704ld0h3 is not listed on IDEAS
    15. Adrien Auclert & Bence Bardóczy & Matthew Rognlie & Ludwig Straub, 2021. "Using the Sequence‐Space Jacobian to Solve and Estimate Heterogeneous‐Agent Models," Econometrica, Econometric Society, vol. 89(5), pages 2375-2408, September.
    16. Meyer-Gohde, Alexander, 2026. "Solving and analyzing DSGE models in the frequency domain," Journal of Economic Dynamics and Control, Elsevier, vol. 185(C).
    17. Coleman, Wilbur John, II, 1990. "Solving the Stochastic Growth Model by Policy-Function Iteration," Journal of Business & Economic Statistics, American Statistical Association, vol. 8(1), pages 27-29, January.
    18. Huggett, Mark, 1993. "The risk-free rate in heterogeneous-agent incomplete-insurance economies," Journal of Economic Dynamics and Control, Elsevier, vol. 17(5-6), pages 953-969.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Fernández-Villaverde, Jesús & Marbet, Joël & Nuño, Galo & Rachedi, Omar, 2025. "Inequality and the zero lower bound," Journal of Econometrics, Elsevier, vol. 249(PC).
    2. François Le Grand & Xavier Ragot, 2022. "Managing Inequality Over Business Cycles: Optimal Policies With Heterogeneous Agents And Aggregate Shocks," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 63(1), pages 511-540, February.
    3. Schesch, Constantin, 2024. "Pseudospectral methods for continuous-time heterogeneous-agent models," Journal of Economic Dynamics and Control, Elsevier, vol. 163(C).
    4. Marlon Azinovic-Yang & Jan v{Z}emliv{c}ka, 2025. "Deep Learning in the Sequence Space," Papers 2509.13623, arXiv.org, revised Mar 2026.
    5. Dobrew, Michael & Gerke, Rafael & Giesen, Sebastian & Röttger, Joost, 2025. "Make-up strategies with incomplete markets and bounded rationality," European Economic Review, Elsevier, vol. 173(C).
    6. Jesús Fernández‐Villaverde & Samuel Hurtado & Galo Nuño, 2023. "Financial Frictions and the Wealth Distribution," Econometrica, Econometric Society, vol. 91(3), pages 869-901, May.
    7. Marlon Azinovic-Yang & Jan Zemlicka, 2025. "Deep Learning in the Sequence Space," CERGE-EI Working Papers wp802, The Center for Economic Research and Graduate Education - Economics Institute, Prague.
    8. Boppart, Timo & Krusell, Per & Mitman, Kurt, 2018. "Exploiting MIT shocks in heterogeneous-agent economies: the impulse response as a numerical derivative," Journal of Economic Dynamics and Control, Elsevier, vol. 89(C), pages 68-92.
    9. Isaiah Hull & Or Sattath & Eleni Diamanti & Göran Wendin, 2024. "Quantum Technology for Economists," Contributions to Economics, Springer, number 978-3-031-50780-9, March.
    10. Adrien Auclert & Bence Bardóczy & Matthew Rognlie & Ludwig Straub, 2021. "Using the Sequence‐Space Jacobian to Solve and Estimate Heterogeneous‐Agent Models," Econometrica, Econometric Society, vol. 89(5), pages 2375-2408, September.
    11. Li, Mingzhe, 2025. "A Theory of Portfolio Choice for Heterogeneous Investors," MPRA Paper 126642, University Library of Munich, Germany, revised 29 Oct 2025.
    12. Ivo Bakota, 2023. "Market Clearing and Krusell-Smith Algorithm in an Economy with Multiple Assets," Computational Economics, Springer;Society for Computational Economics, vol. 62(3), pages 1007-1045, October.
    13. Karsten O. Chipeniuk, 2020. "Optimal Grid Selection for the Numerical Solution of Dynamic Stochastic Optimization Problems," Computational Economics, Springer;Society for Computational Economics, vol. 56(4), pages 883-928, December.
    14. Bruce Preston & Mauro Roca, 2007. "Incomplete Markets, Heterogeneity and Macroeconomic Dynamics," NBER Working Papers 13260, National Bureau of Economic Research, Inc.
    15. Giusto, Andrea, 2014. "Adaptive learning and distributional dynamics in an incomplete markets model," Journal of Economic Dynamics and Control, Elsevier, vol. 40(C), pages 317-333.
    16. Bayer, Christian & Luetticke, Ralph & Weiss, Maximilian & Winkelmann, Yannik, 2026. "An endogenous gridpoint method for distributional dynamics," Journal of Monetary Economics, Elsevier, vol. 158(C).
    17. Darracq Pariès, Matthieu & Notarpietro, Alessandro & Kilponen, Juha & Papadopoulou, Niki & Zimic, Srečko & Aldama, Pierre & Langenus, Geert & Alvarez, Luis Julian & Lemoine, Matthieu & Angelini, Elena, 2021. "Review of macroeconomic modelling in the Eurosystem: current practices and scope for improvement," Occasional Paper Series 267, European Central Bank.
    18. Francesco Ferlaino, 2024. "Does the financial accelerator accelerate inequalities?," Working Papers 538, University of Milano-Bicocca, Department of Economics.
    19. Muffasir Badshah & Paul Beaumont & Anuj Srivastava, 2013. "Computing Equilibrium Wealth Distributions in Models with Heterogeneous-Agents, Incomplete Markets and Idiosyncratic Risk," Computational Economics, Springer;Society for Computational Economics, vol. 41(2), pages 171-193, February.
    20. François Le Grand & Xavier Ragot, 2022. "Managing Inequality Over Business Cycles: Optimal Policies With Heterogeneous Agents And Aggregate Shocks," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 63(1), pages 511-540, February.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:cpm:dynare:088. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Sébastien Villemot (email available below). General contact details of provider: https://edirc.repec.org/data/ceprefr.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.