# General DSGE Modeling

**URL:** https://forum.dynare.org/c/generalmodeling/14.md

[Latest](https://forum.dynare.org/latest.md) · [Categories](https://forum.dynare.org/categories.md)

---

## [About the General DSGE Modeling category](https://forum.dynare.org/t/about-the-general-dsge-modeling-category/10423)

<div class="topic-metadata">

**Author:** [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Replies:** 1\
**Last updated:** [26 June 2020 18:09 UTC](https://forum.dynare.org/t/about-the-general-dsge-modeling-category/10423 "2020-06-26T18:09:46Z")

</div>

The place for general questions about DSGE modeling not directly related to Dynare

---

## [Understanding Croce (2014) Dynare Code with Epstein-Zin Preferences](https://forum.dynare.org/t/understanding-croce-2014-dynare-code-with-epstein-zin-preferences/10736)

<div class="topic-metadata">

**Author:** [@nemmerel](https://forum.dynare.org/u/nemmerel)\
**Replies:** 6\
**Last updated:** [8 November 2026 01:47 UTC](https://forum.dynare.org/t/understanding-croce-2014-dynare-code-with-epstein-zin-preferences/10736 "2026-11-08T01:47:05Z")

</div>

Dear all, I am attempting to understand the replication Dynare code for Croce (2014), “Long-run productivity risk: A New hope for production-based asset pricing” (pdf link to paper http://pages.stern.nyu.edu/~dbackus/BF…

---

## [Has anyone used the dsge package in R?](https://forum.dynare.org/t/has-anyone-used-the-dsge-package-in-r/28494)

<div class="topic-metadata">

**Author:** [@Sammy](https://forum.dynare.org/u/Sammy)\
**Replies:** 0\
**Last updated:** [27 October 2026 08:47 UTC](https://forum.dynare.org/t/has-anyone-used-the-dsge-package-in-r/28494 "2026-10-27T08:47:07Z")

</div>

Hi everyone, I’m currently involved in an R course with a group of macroeconomists, and the dsge package came up in one of our discussions. I wanted to ask whether anyone here has used it for research, teaching or polic…

---

## [DynareR: A Seamless Integration of R and Dynare](https://forum.dynare.org/t/dynarer-a-seamless-integration-of-r-and-dynare/18515)

<div class="topic-metadata">

**Author:** [@Fabio1](https://forum.dynare.org/u/Fabio1)\
**Replies:** 3\
**Last updated:** [27 October 2026 08:37 UTC](https://forum.dynare.org/t/dynarer-a-seamless-integration-of-r-and-dynare/18515 "2026-10-27T08:37:20Z")

</div>

Do you have any comment about the RStudio package “DynareR: A Seamless Integration of R and Dynare”? Have you ever used it? Recommend any package in R to DSGE models?

---

## [Replication file in Dynare](https://forum.dynare.org/t/replication-file-in-dynare/28458)

<div class="topic-metadata">

**Author:** [@Badras](https://forum.dynare.org/u/Badras)\
**Replies:** 4\
**Last updated:** [30 August 2026 23:43 UTC](https://forum.dynare.org/t/replication-file-in-dynare/28458 "2026-08-30T23:43:27Z")

</div>

Dear Prof. @jpfeifer Is it possible to access your paper’s Dynare code for “Mr. Keynes meets the Classics: Government Spending and the Real Exchange Rate” (published in the Journal of Political Economy, 2024). The jou…

---

## [Open Economy Modeling Problem](https://forum.dynare.org/t/open-economy-modeling-problem/28440)

<div class="topic-metadata">

**Author:** [@WeiJunlong](https://forum.dynare.org/u/WeiJunlong)\
**Replies:** 2\
**Last updated:** [20 August 2026 14:44 UTC](https://forum.dynare.org/t/open-economy-modeling-problem/28440 "2026-08-20T14:44:35Z")

</div>

Hello everyone, I recently started learning about two-country models, and I’m trying to implement a two-country economy, where residents of one country both deposit money to financial institutions and also buy foreign bo…

---

## [Excess shocks in filtering](https://forum.dynare.org/t/excess-shocks-in-filtering/28431)

<div class="topic-metadata">

**Author:** [@Kavarkk](https://forum.dynare.org/u/Kavarkk)\
**Replies:** 2\
**Last updated:** [9 July 2026 15:48 UTC](https://forum.dynare.org/t/excess-shocks-in-filtering/28431 "2026-07-09T15:48:48Z")

</div>

Hello, I have a question regarding Dynare’s kalman filter. Is it possible to filter shocks in a model with more shocks than observables. And if it is possible, then how does dynare handle this? Does it use some kind of …

---

## [Gerali et al Credit and banking](https://forum.dynare.org/t/gerali-et-al-credit-and-banking/3727)

<div class="topic-metadata">

**Author:** [@maa14](https://forum.dynare.org/u/maa14)\
**Replies:** 30\
**Last updated:** [7 July 2026 06:24 UTC](https://forum.dynare.org/t/gerali-et-al-credit-and-banking/3727 "2026-07-07T06:24:13Z")

</div>

Hi, Has anyone worked in the Gerali, Neri, Sessa, Signoretti JMCB 2010 paper “Credit and banking in a DSGE model of the Euro Area”? Any idea from where to get the source code? Thanks!!

---

## [Extreme event shocks in DSGE models](https://forum.dynare.org/t/extreme-event-shocks-in-dsge-models/28402)

<div class="topic-metadata">

**Author:** [@asprilqjs](https://forum.dynare.org/u/asprilqjs)\
**Replies:** 2\
**Last updated:** [11 June 2026 12:52 UTC](https://forum.dynare.org/t/extreme-event-shocks-in-dsge-models/28402 "2026-06-11T12:52:45Z")

</div>

Dear Professor, if I want to introduce some extreme event shocks into my DSGE model, are there any good references or practices?

---

## [Parameter stability testingg](https://forum.dynare.org/t/parameter-stability-testingg/28409)

<div class="topic-metadata">

**Author:** [@redbanana](https://forum.dynare.org/u/redbanana)\
**Replies:** 1\
**Last updated:** [10 June 2026 09:28 UTC](https://forum.dynare.org/t/parameter-stability-testingg/28409 "2026-06-10T09:28:00Z")

</div>

Dear @jpfeifer, I am having a major issue at testing for parameter stability, using ESS procedure, developed by Inoue and Rossi. For Slovenia and Italy, I obtain perfect result, a positive SupLR value, that is result of…

---

## [Partial equilibrium vs General equilibrium](https://forum.dynare.org/t/partial-equilibrium-vs-general-equilibrium/28368)

<div class="topic-metadata">

**Author:** [@luishb](https://forum.dynare.org/u/luishb)\
**Replies:** 1\
**Last updated:** [26 May 2026 09:02 UTC](https://forum.dynare.org/t/partial-equilibrium-vs-general-equilibrium/28368 "2026-05-26T09:02:58Z")

</div>

Dear all, I am working with a DSGE model that includes a housing sector. I would like to compute impulse response functions to a monetary policy shock under a partial equilibrium setup, where the housing sector reacts t…

---

## [Equity premium (asset pricing) in DSGE model](https://forum.dynare.org/t/equity-premium-asset-pricing-in-dsge-model/14090)

<div class="topic-metadata">

**Author:** [@budoka](https://forum.dynare.org/u/budoka)\
**Replies:** 7\
**Last updated:** [21 April 2026 12:02 UTC](https://forum.dynare.org/t/equity-premium-asset-pricing-in-dsge-model/14090 "2026-04-21T12:02:31Z")

</div>

Dear all, I’d like to know how to calculate equity premium in DSGE models. I have the same problem that Cybueh posted before. My understanding is as same as the following. Could you please comment and complement my i…

---

## [Consumer (economic) well-being](https://forum.dynare.org/t/consumer-economic-well-being/28337)

<div class="topic-metadata">

**Author:** [@hipa](https://forum.dynare.org/u/hipa)\
**Replies:** 1\
**Last updated:** [13 April 2026 15:22 UTC](https://forum.dynare.org/t/consumer-economic-well-being/28337 "2026-04-13T15:22:29Z")

</div>

Dear all, From my deterministic DSGE model, I measure the (economic) well-being of households by computing the steady-state consumption equivalent of utility over time. While with a partial equilibrium model, consumer …

---

## [Missing non-redundant equation in a energy NK-DSGE model with CES energy aggregation](https://forum.dynare.org/t/missing-non-redundant-equation-in-a-energy-nk-dsge-model-with-ces-energy-aggregation/28336)

<div class="topic-metadata">

**Author:** [@Q\_24](https://forum.dynare.org/u/Q_24)\
**Replies:** 0\
**Last updated:** [10 April 2026 12:55 UTC](https://forum.dynare.org/t/missing-non-redundant-equation-in-a-energy-nk-dsge-model-with-ces-energy-aggregation/28336 "2026-04-10T12:55:02Z")

</div>

Hi everyone, I am working on a nonlinear NK-DSGE model with two energy sectors (brown and green), a CES energy aggregator, Rotemberg price adjustment in both energy sectors and the final-goods sector, and government inv…

---

## [Unusual spikes in IRFs](https://forum.dynare.org/t/unusual-spikes-in-irfs/28326)

<div class="topic-metadata">

**Author:** [@Priyadarshini\_Roy](https://forum.dynare.org/u/Priyadarshini_Roy)\
**Replies:** 0\
**Last updated:** [31 March 2026 12:40 UTC](https://forum.dynare.org/t/unusual-spikes-in-irfs/28326 "2026-03-31T12:40:37Z")

</div>

Hello, Dynare community. I am working a three-agent NK model (3 household groups) with consumption taxes and labor income taxes for my dissertation. Motivated by the GST Reforms 2.0 and Income Tax Act 2025 in India, I am…

---

## [How to get parameter value](https://forum.dynare.org/t/how-to-get-parameter-value/28325)

<div class="topic-metadata">

**Author:** [@hafiz](https://forum.dynare.org/u/hafiz)\
**Replies:** 0\
**Last updated:** [31 March 2026 11:18 UTC](https://forum.dynare.org/t/how-to-get-parameter-value/28325 "2026-03-31T11:18:59Z")

</div>

Hi everyone, i am hafiz and i am new here and also just started learning DSGE. Currently, I am trying to build an equation that reflects my country’s condition regarding the housing issue. I am trying to study the effect…

---

## [Modules 5 and 6](https://forum.dynare.org/t/modules-5-and-6/28311)

<div class="topic-metadata">

**Author:** [@John-MSR](https://forum.dynare.org/u/John-MSR)\
**Replies:** 0\
**Last updated:** [16 March 2026 10:06 UTC](https://forum.dynare.org/t/modules-5-and-6/28311 "2026-03-16T10:06:57Z")

</div>

Good day. We invite DSGE learners to join our upcoming DSGE Modules: 5 (Intro to DSGE) and 6 (Advanced DSGE) planned in April and May 2026. The training is online via Zoom and you can explore all details and register at G…

---

## [Log linearization of Tobin Q equation (SW, 2003)](https://forum.dynare.org/t/log-linearization-of-tobin-q-equation-sw-2003/24730)

<div class="topic-metadata">

**Author:** [@MarcoUrbani](https://forum.dynare.org/u/MarcoUrbani)\
**Replies:** 8\
**Last updated:** [5 March 2026 03:42 UTC](https://forum.dynare.org/t/log-linearization-of-tobin-q-equation-sw-2003/24730 "2026-03-05T03:42:59Z")

</div>

Hi everybody, I am struggling with the following log linearization (it is the FOC for K(t) in SW, 2003); in particular, given that functional form for the capital utilization function, I was wondering whether I have to …

---

## [(Foreign) bonds in multi-sector models](https://forum.dynare.org/t/foreign-bonds-in-multi-sector-models/28279)

<div class="topic-metadata">

**Author:** [@AlecVanBoven](https://forum.dynare.org/u/AlecVanBoven)\
**Replies:** 0\
**Last updated:** [20 February 2026 07:51 UTC](https://forum.dynare.org/t/foreign-bonds-in-multi-sector-models/28279 "2026-02-20T07:51:55Z")

</div>

Hi everyone, I have a bit of a more general question related to the treatment of domestic and foreign bonds in multi-sector models. I have got models running with these specific features but I have always remained confu…

---

## [Nonlinear Markup Shocks](https://forum.dynare.org/t/nonlinear-markup-shocks/22258)

<div class="topic-metadata">

**Author:** [@mhesam\_ahmdn](https://forum.dynare.org/u/mhesam_ahmdn)\
**Replies:** 9\
**Last updated:** [11 February 2026 03:46 UTC](https://forum.dynare.org/t/nonlinear-markup-shocks/22258 "2026-02-11T03:46:46Z")

</div>

Dear Prof. Pfeifer, In a nonlinear model which includes Calvo style price and wage markups, could the estimation include shocks to elasticity of substitution of labor and goods? I know as the elasticities appear in the …

---

## [Model Specification and Steady state computation](https://forum.dynare.org/t/model-specification-and-steady-state-computation/28264)

<div class="topic-metadata">

**Author:** [@DiVeroli](https://forum.dynare.org/u/DiVeroli)\
**Replies:** 0\
**Last updated:** [9 February 2026 20:01 UTC](https://forum.dynare.org/t/model-specification-and-steady-state-computation/28264 "2026-02-09T20:01:05Z")

</div>

I’m working on a model where firms’ productivity follows a lognormal distribution, and there’s an endogenous productivity threshold (a\_bar) that separates firms using bank loans from those using capital markets. This thr…

---

## [What is the difference and reason of the model when the loan income takes Rt-1\*Dt-1 or Rt\*Dt-1 when setting the banker part in Iacoviello(2014)？](https://forum.dynare.org/t/what-is-the-difference-and-reason-of-the-model-when-the-loan-income-takes-rt-1-dt-1-or-rt-dt-1-when-setting-the-banker-part-in-iacoviello-2014/21067)

<div class="topic-metadata">

**Author:** [@wenzhuo](https://forum.dynare.org/u/wenzhuo)\
**Replies:** 15\
**Last updated:** [29 January 2026 14:59 UTC](https://forum.dynare.org/t/what-is-the-difference-and-reason-of-the-model-when-the-loan-income-takes-rt-1-dt-1-or-rt-dt-1-when-setting-the-banker-part-in-iacoviello-2014/21067 "2026-01-29T14:59:04Z")

</div>

Hi， In the sixth page of Iacoviello (2014), when setting the banking sector, the current deposit income paid by banks to residents is R\_{H,t-1}D\_{t-1}, while the current loan income obtained by banks from enterprises is…

---

## [Issues with replication of Erceg & Levin (2003)](https://forum.dynare.org/t/issues-with-replication-of-erceg-levin-2003/28174)

<div class="topic-metadata">

**Author:** [@equinterosh](https://forum.dynare.org/u/equinterosh)\
**Replies:** 4\
**Last updated:** [25 January 2026 19:38 UTC](https://forum.dynare.org/t/issues-with-replication-of-erceg-levin-2003/28174 "2026-01-25T19:38:54Z")

</div>

Dear community! Ive been working on replicating the model of Erceg & Levin (2003) for a while now with no success. The core of the programming problem is given by their inflation targeting scheme, composed of 4 equatio…

---

## [GIRF for Asymmetric effects](https://forum.dynare.org/t/girf-for-asymmetric-effects/28198)

<div class="topic-metadata">

**Author:** [@Gorsi](https://forum.dynare.org/u/Gorsi)\
**Replies:** 2\
**Last updated:** [22 January 2026 05:24 UTC](https://forum.dynare.org/t/girf-for-asymmetric-effects/28198 "2026-01-22T05:24:44Z")

</div>

Hello, I was following codes given by Prof. Pfeifer on their website to arrive at asymmetric response of variables to an expansionary and contractionary monetary policy shock using GIRFs but in a two agent model. I jus…

---

## [Singularity problem—about production function](https://forum.dynare.org/t/singularity-problem-about-production-function/28191)

<div class="topic-metadata">

**Author:** [@wu\_Justin](https://forum.dynare.org/u/wu_Justin)\
**Replies:** 1\
**Last updated:** [19 January 2026 12:50 UTC](https://forum.dynare.org/t/singularity-problem-about-production-function/28191 "2026-01-19T12:50:24Z")

</div>

Dear all.I have constructed a model encompassing two types of households and housing choices, and I have already solved for the steady-state values. The only remaining issue is the collinearity problem in the productio…

---

## [Issues replicating Galí (2007) (Heterogenous agents & Government spending)](https://forum.dynare.org/t/issues-replicating-gali-2007-heterogenous-agents-government-spending/17671)

<div class="topic-metadata">

**Author:** [@LetThereBeQE](https://forum.dynare.org/u/LetThereBeQE)\
**Replies:** 27\
**Last updated:** [16 January 2026 12:26 UTC](https://forum.dynare.org/t/issues-replicating-gali-2007-heterogenous-agents-government-spending/17671 "2026-01-16T12:26:51Z")

</div>

Dear all, We are trying to replicate the 2007 paper by Galí, Vallés & López-Salido, “Understanding the effects of government consumption on consumption”, which seeks to model the possible crowding-in effects from govern…

---

## [Reproducing Annicchiarico &amp; Di Dio (2015, JEEM) Environmental DSGE Model issue](https://forum.dynare.org/t/reproducing-annicchiarico-amp-di-dio-2015-jeem-environmental-dsge-model-issue/28131)

<div class="topic-metadata">

**Author:** [@Zhangweiyi](https://forum.dynare.org/u/Zhangweiyi)\
**Replies:** 6\
**Last updated:** [10 January 2026 07:08 UTC](https://forum.dynare.org/t/reproducing-annicchiarico-amp-di-dio-2015-jeem-environmental-dsge-model-issue/28131 "2026-01-10T07:08:11Z")

</div>

I am trying to replicate the results of the paper “Environmental policy and macroeconomic dynamics in a New Keynesian model” (Barbara Annicchiarico & Fabio Di Dio, 2015). I have implemented the model in Dynare and can …

---

## [Attempt to replicate Smets and Wouters (2024)](https://forum.dynare.org/t/attempt-to-replicate-smets-and-wouters-2024/28158)

<div class="topic-metadata">

**Author:** [@AChadu](https://forum.dynare.org/u/AChadu)\
**Replies:** 0\
**Last updated:** [5 January 2026 08:04 UTC](https://forum.dynare.org/t/attempt-to-replicate-smets-and-wouters-2024/28158 "2026-01-05T08:04:47Z")

</div>

Hi everyone, I’m trying to replicate the Smets & Wouters (2024) model in Dynare, with the goal of later adapting it to Brazil. Before making any modifications, I want to reproduce the original model as closely as possib…

---

## [Effects of government spending shocks with interest rate peg](https://forum.dynare.org/t/effects-of-government-spending-shocks-with-interest-rate-peg/28143)

<div class="topic-metadata">

**Author:** [@ramani](https://forum.dynare.org/u/ramani)\
**Replies:** 0\
**Last updated:** [23 December 2025 21:59 UTC](https://forum.dynare.org/t/effects-of-government-spending-shocks-with-interest-rate-peg/28143 "2025-12-23T21:59:11Z")

</div>

Hello, I am currently trying to replicate Sims and Wolff (2018) model published in IER who estimate government expenditure multipliers. In one of the scenario, they calculate multipliers under interest rate peg (nomi…

---

## [Seeking code for NK\_GMAS25ppi](https://forum.dynare.org/t/seeking-code-for-nk-gmas25ppi/28133)

<div class="topic-metadata">

**Author:** [@VinayG](https://forum.dynare.org/u/VinayG)\
**Replies:** 2\
**Last updated:** [16 December 2025 13:22 UTC](https://forum.dynare.org/t/seeking-code-for-nk-gmas25ppi/28133 "2025-12-16T13:22:23Z")

</div>

Dear community, I am working on a topic to explore the effects of section 232 US tariffs on housing markets in US and potential implications for monetary policy. I just came across that MMB recently release a new versio…

[Next page](https://forum.dynare.org/c/generalmodeling/14.md?page=1)
