# Dynare help (legacy posts)

**URL:** https://forum.dynare.org/c/dynare-help/6.md

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

---

## [About the Dynare help (legacy posts) category](https://forum.dynare.org/t/about-the-dynare-help-legacy-posts-category/13)

<div class="topic-metadata">

**Author:** [@system](https://forum.dynare.org/u/system)\
**Replies:** 0\
**Last updated:** [14 January 2006 19:59 UTC](https://forum.dynare.org/t/about-the-dynare-help-legacy-posts-category/13 "2006-01-14T19:59:05Z")

</div>

This is a legacy category, inherited from our previous forum which is now closed. We imported here all the posts that were available in the category “Dynare help”. Please use other, more expressive categories.

---

## [AI for Economists and Policy Analysts – Online Executive Workshop](https://forum.dynare.org/t/ai-for-economists-and-policy-analysts-online-executive-workshop/28374)

<div class="topic-metadata">

**Author:** [@John-MSR](https://forum.dynare.org/u/John-MSR)\
**Replies:** 0\
**Last updated:** [27 May 2026 19:26 UTC](https://forum.dynare.org/t/ai-for-economists-and-policy-analysts-online-executive-workshop/28374 "2026-05-27T19:26:13Z")

</div>

Dear Colleagues and Friends, Over the past months, we have been closely following how rapidly Artificial Intelligence is changing the way economists, researchers, and policy analysts work. What started as simple experi…

---

## [Kamal Hinduja : How to create a matrix in MATLAB?](https://forum.dynare.org/t/kamal-hinduja-how-to-create-a-matrix-in-matlab/28065)

<div class="topic-metadata">

**Author:** [@kamalhinduja](https://forum.dynare.org/u/kamalhinduja)\
**Replies:** 1\
**Last updated:** [31 October 2025 08:17 UTC](https://forum.dynare.org/t/kamal-hinduja-how-to-create-a-matrix-in-matlab/28065 "2025-10-31T08:17:15Z")

</div>

Hi, I am Kamal Hinduja based Geneva, Switzerland(Swiss). Can anyone explain How to create a matrix in MATLAB? Thanks, Regards Kamal Hinduja Geneva, Switzerland

---

## [How to implement posterior-based Wald-type test after Dynare Bayesian estimation? Reference: Liu et al. (J Econometrics)](https://forum.dynare.org/t/how-to-implement-posterior-based-wald-type-test-after-dynare-bayesian-estimation-reference-liu-et-al-j-econometrics/27825)

<div class="topic-metadata">

**Author:** [@DavidZhang](https://forum.dynare.org/u/DavidZhang)\
**Replies:** 0\
**Last updated:** [28 July 2025 13:52 UTC](https://forum.dynare.org/t/how-to-implement-posterior-based-wald-type-test-after-dynare-bayesian-estimation-reference-liu-et-al-j-econometrics/27825 "2025-07-28T13:52:51Z")

</div>

Hello all, I have estimated a DSGE model using Dynare’s Bayesian estimation framework. After estimation, I obtained the posterior mean vector and posterior covariance matrix of the parameters from oo\_.posterior.metropol…

---

## [Parfor with Dynare](https://forum.dynare.org/t/parfor-with-dynare/3384)

<div class="topic-metadata">

**Author:** [@Dr\_En\_Ami](https://forum.dynare.org/u/Dr_En_Ami)\
**Replies:** 5\
**Last updated:** [16 March 2025 02:34 UTC](https://forum.dynare.org/t/parfor-with-dynare/3384 "2025-03-16T02:34:29Z")

</div>

Is dynare compatible with parfor? That is, can one call dynare within a parfor loop?

---

## [Dynare in Julia not printing graphs or showing policy coefficient](https://forum.dynare.org/t/dynare-in-julia-not-printing-graphs-or-showing-policy-coefficient/27047)

<div class="topic-metadata">

**Author:** [@alejorojas](https://forum.dynare.org/u/alejorojas)\
**Replies:** 0\
**Last updated:** [16 January 2025 08:01 UTC](https://forum.dynare.org/t/dynare-in-julia-not-printing-graphs-or-showing-policy-coefficient/27047 "2025-01-16T08:01:09Z")

</div>

Hi, I am trying to introduce my graduate students to Dynare in Julia. However, I am having the following problems obtaining the coefficients for the policy functions and the IRF graphs. My model is the classical exampl…

---

## [cannot identified "exo\_nbr"](https://forum.dynare.org/t/cannot-identified-exo-nbr/26673)

<div class="topic-metadata">

**Author:** [@xj102](https://forum.dynare.org/u/xj102)\
**Replies:** 1\
**Last updated:** [1 November 2024 11:27 UTC](https://forum.dynare.org/t/cannot-identified-exo-nbr/26673 "2024-11-01T11:27:33Z")

</div>

Hi, professor: I tried to replicate the figure 8.1 for Gali’s book, but my code cannot run as cannot identified “exo\_nbr” c8.log (950 Bytes)

---

## [On solving for the steady state](https://forum.dynare.org/t/on-solving-for-the-steady-state/26534)

<div class="topic-metadata">

**Author:** [@hoke](https://forum.dynare.org/u/hoke)\
**Replies:** 0\
**Last updated:** [6 October 2024 07:58 UTC](https://forum.dynare.org/t/on-solving-for-the-steady-state/26534 "2024-10-06T07:58:35Z")

</div>

I’m trying to reproduce an article, but there are always errors in the steady state, and I’m looking for help to know what the errors are？Here is the code I wrote and PDF of article. green\_rbc.mod (5.9 KB) green\_ss.m (…

---

## [Output dynare results into excel](https://forum.dynare.org/t/output-dynare-results-into-excel/4037)

<div class="topic-metadata">

**Author:** [@diatrochoi](https://forum.dynare.org/u/diatrochoi)\
**Replies:** 9\
**Last updated:** [10 June 2024 12:04 UTC](https://forum.dynare.org/t/output-dynare-results-into-excel/4037 "2024-06-10T12:04:35Z")

</div>

Hi I have a nested loops of 3 different parameters and I want to generate the number of eigenvalues with mod\>1, the total number of eigenvalues and whether the rank condition is verified into an excel file to check for …

---

## [Evaluate dynare parameters](https://forum.dynare.org/t/evaluate-dynare-parameters/25142)

<div class="topic-metadata">

**Author:** [@amina0621](https://forum.dynare.org/u/amina0621)\
**Replies:** 1\
**Last updated:** [10 February 2024 13:32 UTC](https://forum.dynare.org/t/evaluate-dynare-parameters/25142 "2024-02-10T13:32:50Z")

</div>

Hello, I am using Dynare 5.4.3 and was wondering if there has been changes to: in older version of dynare ys\_ was not included: eval(\[‘\[resid,g1\]=’,M\_.fname,‘dynamic(y,x, M.params, it\_);’\]); then in versions before …

---

## [Investment Delays](https://forum.dynare.org/t/investment-delays/899)

<div class="topic-metadata">

**Author:** [@roberto.croce](https://forum.dynare.org/u/roberto.croce)\
**Replies:** 3\
**Last updated:** [24 January 2024 12:05 UTC](https://forum.dynare.org/t/investment-delays/899 "2024-01-24T12:05:17Z")

</div>

I am trying to program the investment delay described in Bernanke Gertler Gilchrist what '99 into their financial accelerator model (or one like it anyway). In the paper, they claim that it is sufficient to change q=psi…

---

## [BGG model with investment delays](https://forum.dynare.org/t/bgg-model-with-investment-delays/2729)

<div class="topic-metadata">

**Author:** [@lipetty](https://forum.dynare.org/u/lipetty)\
**Replies:** 3\
**Last updated:** [24 January 2024 12:00 UTC](https://forum.dynare.org/t/bgg-model-with-investment-delays/2729 "2024-01-24T12:00:52Z")

</div>

hi, everyone.do you ever copy the BGG(1999) model with investment delays.In dynare code ,if i set the investment with a head(equation 4.19),then ,the b\_k condition is not satified,so ,how can i modify it ,thank you ! B…

---

## [Help for these equation](https://forum.dynare.org/t/help-for-these-equation/24977)

<div class="topic-metadata">

**Author:** [@alex22](https://forum.dynare.org/u/alex22)\
**Replies:** 2\
**Last updated:** [17 January 2024 10:51 UTC](https://forum.dynare.org/t/help-for-these-equation/24977 "2024-01-17T10:51:24Z")

</div>

Can anyone tell me why eq number 29 is wrong? It matches the government’s budget constraint with taxes added, but I can’t figure out what I’m doing wrong. Thanks in advance, I also attach the main equations, although in…

---

## [News about taxes and expectation-driven business cycles](https://forum.dynare.org/t/news-about-taxes-and-expectation-driven-business-cycles/24799)

<div class="topic-metadata">

**Author:** [@Victoria](https://forum.dynare.org/u/Victoria)\
**Replies:** 1\
**Last updated:** [20 December 2023 07:51 UTC](https://forum.dynare.org/t/news-about-taxes-and-expectation-driven-business-cycles/24799 "2023-12-20T07:51:29Z")

</div>

Dear friends, I am in a process of replicating the paper “News about taxes and expectation-driven business cycles” by Anca-Ioana Sirbu. This is my first time using Dynare and I will be greatefull if you help me in this…

---

## [Help with paper replication in dynare](https://forum.dynare.org/t/help-with-paper-replication-in-dynare/4122)

<div class="topic-metadata">

**Author:** [@Luciano](https://forum.dynare.org/u/Luciano)\
**Replies:** 4\
**Last updated:** [24 October 2023 12:21 UTC](https://forum.dynare.org/t/help-with-paper-replication-in-dynare/4122 "2023-10-24T12:21:29Z")

</div>

Dear all, I am trying to replicate the results of the paper " The effects of monetary policy news and surprises " by Milani and Treadwell (2012) JMCB I have written the codes for this paper which are attached below. H…

---

## [What information can be learned from the Eigenvalues?](https://forum.dynare.org/t/what-information-can-be-learned-from-the-eigenvalues/23229)

<div class="topic-metadata">

**Author:** [@LouisC](https://forum.dynare.org/u/LouisC)\
**Replies:** 3\
**Last updated:** [4 October 2023 18:17 UTC](https://forum.dynare.org/t/what-information-can-be-learned-from-the-eigenvalues/23229 "2023-10-04T18:17:48Z")

</div>

Dear all, What information can you learn from the below eigenvalues as there are three values equal to 1 and one value is infinite? EIGENVALUES: Modulus Real Imaginary 1.583e-16 1.583e-16…

---

## [Auxiliary variables and DR order](https://forum.dynare.org/t/auxiliary-variables-and-dr-order/2149)

<div class="topic-metadata">

**Author:** [@danielsolomon79](https://forum.dynare.org/u/danielsolomon79)\
**Replies:** 2\
**Last updated:** [23 September 2011 06:44 UTC](https://forum.dynare.org/t/auxiliary-variables-and-dr-order/2149 "2011-09-23T06:44:23Z")

</div>

Hi. Does anyone know how auxiliary variables such as k(-2) or I(-1) are put inside the DR order? For example do the original state variables still come first after the static variables (followed by the auxiliary variabl…

---

## [Historical decomposition](https://forum.dynare.org/t/historical-decomposition/6193)

<div class="topic-metadata">

**Author:** [@marco\_dp](https://forum.dynare.org/u/marco_dp)\
**Replies:** 3\
**Last updated:** [10 May 2017 13:24 UTC](https://forum.dynare.org/t/historical-decomposition/6193 "2017-05-10T13:24:09Z")

</div>

Dear all, I estimated a DSGE model via bayesian technique. Dynare produced the graph of the historical decomposition. I would like to know where are stored the resuts of the historical decomposition in order to plot the…

---

## [No-Ponzi game condition](https://forum.dynare.org/t/no-ponzi-game-condition/954)

<div class="topic-metadata">

**Author:** [@mfranta](https://forum.dynare.org/u/mfranta)\
**Replies:** 3\
**Last updated:** [18 March 2009 03:39 UTC](https://forum.dynare.org/t/no-ponzi-game-condition/954 "2009-03-18T03:39:46Z")

</div>

Dear all, can anyone give me a hint how to incorporate no-Ponzi game condition into Dynare? I have a stochastic model with government debt. The problem is that dynare cannot find stable equilibrium (there is higher numb…

---

## [Steady state files for deterministic models](https://forum.dynare.org/t/steady-state-files-for-deterministic-models/2480)

<div class="topic-metadata">

**Author:** [@boskar](https://forum.dynare.org/u/boskar)\
**Replies:** 3\
**Last updated:** [30 April 2013 16:15 UTC](https://forum.dynare.org/t/steady-state-files-for-deterministic-models/2480 "2013-04-30T16:15:52Z")

</div>

Hi Everyone! I would like to study permanent shock in my model. For the steady state I use /matlab/ steady state file with the same name as model file (model\_steadystate.m). And for temporary shocks there is no problem…

---

## [Problems: Input to EIG must not contain NaN or Inf](https://forum.dynare.org/t/problems-input-to-eig-must-not-contain-nan-or-inf/5174)

<div class="topic-metadata">

**Author:** [@blueice](https://forum.dynare.org/u/blueice)\
**Replies:** 1\
**Last updated:** [13 December 2015 16:54 UTC](https://forum.dynare.org/t/problems-input-to-eig-must-not-contain-nan-or-inf/5174 "2015-12-13T16:54:19Z")

</div>

Using dynare4.4.3 for slove two-country DSGE problems, I have already got the steady value, and I also doing the linear, but both two solutions(1.got the steady value then input the model；2.linear the model）have the same…

---

## [The code runs without results](https://forum.dynare.org/t/the-code-runs-without-results/22001)

<div class="topic-metadata">

**Author:** [@kaifang](https://forum.dynare.org/u/kaifang)\
**Replies:** 3\
**Last updated:** [24 February 2023 14:10 UTC](https://forum.dynare.org/t/the-code-runs-without-results/22001 "2023-02-24T14:10:40Z")

</div>

Dear friends in the forum, can you help me see what’s wrong with my code? I have tried many times, but I can’t run the results. I also checked the code carefully, but I couldn’t find the cause of the error. I hope that s…

---

## [A wrong lag/lead of a variable in VarOrdering](https://forum.dynare.org/t/a-wrong-lag-lead-of-a-variable-in-varordering/2881)

<div class="topic-metadata">

**Author:** [@arks](https://forum.dynare.org/u/arks)\
**Replies:** 2\
**Last updated:** [10 January 2023 14:03 UTC](https://forum.dynare.org/t/a-wrong-lag-lead-of-a-variable-in-varordering/2881 "2023-01-10T14:03:25Z")

</div>

Could someone please tell me where I should check when this message popped up when I run dynare++? Caught ogu::Exception: dynamic\_atoms.cpp:470: A wrong lag/lead of a variable in VarOrdering::do\_pbspbfb I’ve checked my…

---

## [BK conditions are not satisfied in a two country model](https://forum.dynare.org/t/bk-conditions-are-not-satisfied-in-a-two-country-model/21297)

<div class="topic-metadata">

**Author:** [@unnature](https://forum.dynare.org/u/unnature)\
**Replies:** 0\
**Last updated:** [27 October 2022 02:52 UTC](https://forum.dynare.org/t/bk-conditions-are-not-satisfied-in-a-two-country-model/21297 "2022-10-27T02:52:43Z")

</div>

Hi everyone. I meet a problem. I cannot obtain result with a two country model with housing (added by me). I think the question is in the fomulars 1 which are in line 196. I try three types of equations to contribute …

---

## [Generalized schur (QZ) decomposition failed](https://forum.dynare.org/t/generalized-schur-qz-decomposition-failed/3205)

<div class="topic-metadata">

**Author:** [@Angelos](https://forum.dynare.org/u/Angelos)\
**Replies:** 3\
**Last updated:** [12 July 2013 09:05 UTC](https://forum.dynare.org/t/generalized-schur-qz-decomposition-failed/3205 "2013-07-12T09:05:48Z")

</div>

Hi, I’m getting a strange error when trying to run my mod.-file. \[quote\]Error using print\_info (line 36) The generalized Schur (QZ) decomposition failed. For more information, see the documentation for Lapack function …

---

## [How to solve a model with heterogeneous agents?](https://forum.dynare.org/t/how-to-solve-a-model-with-heterogeneous-agents/4667)

<div class="topic-metadata">

**Author:** [@superztt](https://forum.dynare.org/u/superztt)\
**Replies:** 5\
**Last updated:** [1 July 2022 18:58 UTC](https://forum.dynare.org/t/how-to-solve-a-model-with-heterogeneous-agents/4667 "2022-07-01T18:58:26Z")

</div>

I was wondering if Dynare itself can solve a model with a distribution of heterogeneous agents, without the help of external files. If so, could you recommend an example to learn fro? Say individual’s state variable inc…

---

## [Gelain, Lansing and Mendicino 2012 Model](https://forum.dynare.org/t/gelain-lansing-and-mendicino-2012-model/4336)

<div class="topic-metadata">

**Author:** [@Enthusiast](https://forum.dynare.org/u/Enthusiast)\
**Replies:** 1\
**Last updated:** [13 June 2022 19:20 UTC](https://forum.dynare.org/t/gelain-lansing-and-mendicino-2012-model/4336 "2022-06-13T19:20:52Z")

</div>

Hi everybody, Is it possible to find somewhere the Dynare code for “House Prices, Credit Growth, and Excess Volatility” by Gelain, Lansing and Mendicino (2012)? Or does somebody have the code? I’ve been trying to repl…

---

## [Stability problems in a two country model](https://forum.dynare.org/t/stability-problems-in-a-two-country-model/886)

<div class="topic-metadata">

**Author:** [@pens](https://forum.dynare.org/u/pens)\
**Replies:** 0\
**Last updated:** [17 December 2008 15:55 UTC](https://forum.dynare.org/t/stability-problems-in-a-two-country-model/886 "2008-12-17T15:55:30Z")

</div>

Dear All, I am simulating a two country, two goods model, with unilateral transfers from one country to the other, and a contemporaneous exogenous TFP increase in the latter country. I start from an initial steady state…

---

## [Model won't work. Unknown error message](https://forum.dynare.org/t/model-wont-work-unknown-error-message/1369)

<div class="topic-metadata">

**Author:** [@ewoudq](https://forum.dynare.org/u/ewoudq)\
**Replies:** 1\
**Last updated:** [6 March 2010 12:25 UTC](https://forum.dynare.org/t/model-wont-work-unknown-error-message/1369 "2010-03-06T12:25:00Z")

</div>

Hi all, I am working on a simple model, but I am not able to come up with a working one. I always get the following error message: \[code\]??? Reference to non-existent field ‘ghs2’. Error in ==\> disp\_dr at 60 x = x +…

---

## [How to loop over variables in one model?](https://forum.dynare.org/t/how-to-loop-over-variables-in-one-model/18968)

<div class="topic-metadata">

**Author:** [@freefish](https://forum.dynare.org/u/freefish)\
**Replies:** 7\
**Last updated:** [27 September 2021 09:17 UTC](https://forum.dynare.org/t/how-to-loop-over-variables-in-one-model/18968 "2021-09-27T09:17:29Z")

</div>

Hi all, I want to loop over several variables in one model, but didn’t find any similar examples in the forum.What I see are mostly about looping over parameters or values of variables, in these cases the matlab comman…

[Next page](https://forum.dynare.org/c/dynare-help/6.md?page=1)
