# Erreur de compilation

**URL:** https://forum.dynare.org/t/erreur-de-compilation/21810
**Category:** Stochastic simulations
**Created:** [20 January 2023 22:08 UTC](https://forum.dynare.org/t/erreur-de-compilation/21810 "2023-01-20T22:08:34Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![swasss](https://forum.dynare.org/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@swasss](https://forum.dynare.org/u/swasss)
#### Post date: [20 January 2023 22:08 UTC](https://forum.dynare.org/t/erreur-de-compilation/21810/1 "2023-01-20T22:08:34Z")

</div>

Bonsoir  
J’ai besoin d’aide concernant mon programme qui compile pas  
voici le message que ça me montre et j’aimerai appliquer la technique Bayésienne (Possibilité d’aide).

dynare fa.mod  
Starting Dynare (version 5.3).  
Calling Dynare with arguments: none  
Starting preprocessing of the model file …  
ERROR: fa.mod: line 85, cols 11-20: syntax error, unexpected NAME

Error using dynare  
Dynare: preprocessing failed

Ci-joint le fichier  
[fa.mod](https://forum.dynare.org/uploads/short-url/4MmP2Fuaob4PBvIrV4An3JClGAI.mod) (5.1 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: [22 January 2023 16:05 UTC](https://forum.dynare.org/t/erreur-de-compilation/21810/2 "2023-01-22T16:05:40Z")

</div>

You are not properly using comments or name-tags to label your equations.

---

<div class="post-metadata">

### Author: ![swasss](https://forum.dynare.org/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@swasss](https://forum.dynare.org/u/swasss)
#### Post date: [24 January 2023 02:31 UTC](https://forum.dynare.org/t/erreur-de-compilation/21810/3 "2023-01-24T02:31:42Z")

</div>

veuillez trouver l’extension du fichier.mod  
[salimwork.mod](https://forum.dynare.org/uploads/short-url/jafuMXy4FUuPR42Qi5FWWc36q2s.mod) (6.7 KB)

j’avais corrigé les petits problèmes actuellement voici le message que je reçois:  
There are 12 eigenvalue(s) larger than 1 in modulus  
for 11 forward-looking variable(s)

The rank condition ISN’T verified!

Error using print\_info  
Blanchard & Kahn conditions are not satisfied: no stable equilibrium.

Error in stoch\_simul (line 120)  
print\_info(info, options\_.noprint, options\_);

Error in salimwork.driver (line 597)  
[info, oo\_, options\_, M\_] = stoch\_simul(M\_, options\_, oo\_, var\_list\_);

Error in dynare (line 281)  
evalin(‘base’,[fname ‘.driver’]);

j’aimerai savoir comment faire pour appliquer la technique bayésienne pour pouvoir faire les différents test de robustesse (MCMC) algorithme de Hastings et les conditions de Blanchard-Khan ainsi que la décomposition de la variance historique et la décomposition de la variance des erreurs?

---

<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: [24 January 2023 14:25 UTC](https://forum.dynare.org/t/erreur-de-compilation/21810/4 "2023-01-24T14:25:47Z")

</div>

I don’t speak French. But check your timing. For example,

```auto
PI(+1) = P(+1) - P;

```

looks strange.

---

<div class="post-metadata">

### Author: ![swasss](https://forum.dynare.org/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@swasss](https://forum.dynare.org/u/swasss)
#### Post date: [24 January 2023 14:58 UTC](https://forum.dynare.org/t/erreur-de-compilation/21810/5 "2023-01-24T14:58:04Z")

</div>

okay, thank you very much

I would like to know how to apply the Bayesian technique to be able to do the different robustness tests (MCMC) Hastings algorithm and Blanchard-Khan conditions as well as the decomposition of the historical variance and the decomposition of the error variance?

---

<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: [24 January 2023 15:18 UTC](https://forum.dynare.org/t/erreur-de-compilation/21810/6 "2023-01-24T15:18:50Z")

</div>

The first step is to make the model run in its calibrated version. Then you need to prepare the data and add observation equations.

---

<div class="post-metadata">

### Author: ![swasss](https://forum.dynare.org/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@swasss](https://forum.dynare.org/u/swasss)
#### Post date: [24 January 2023 16:10 UTC](https://forum.dynare.org/t/erreur-de-compilation/21810/7 "2023-01-24T16:10:58Z")

</div>

everything is ok the caliber model is passed it gave me a lot of results like :  
MATRIX OF COVARIANCE OF EXOGENOUS SHOCKS  
POLICY AND TRANSITION FUNCTIONS  
etc…  
VARIANCE DECOMPOSITION SIMULATING ONE SHOCK AT A TIME (in percent)

---

<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: [28 January 2023 18:22 UTC](https://forum.dynare.org/t/erreur-de-compilation/21810/8 "2023-01-28T18:22:45Z")

</div>

But then where is your problem?

---

<div class="post-metadata">

### Author: ![swasss](https://forum.dynare.org/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@swasss](https://forum.dynare.org/u/swasss)
#### Post date: [28 January 2023 18:47 UTC](https://forum.dynare.org/t/erreur-de-compilation/21810/9 "2023-01-28T18:47:57Z")

</div>

hello Mr. Johannes Pfeifer, I hope you are doing well?  
your help was very important to me, because the calibrated DSGE model is good (it could run). I thank you very much for your different tips.

Currently I have built my database, firstly, I would like to do a Bayesian estimation for robustness tests (MCMC)  
of Brooks and Gelman (1998); and a Metropolis Hastings chain with the two acceptance ratios  
The two acceptance ratios of the two chains are 25.32 and 24.14% respectively,  
the analysis must be performed with 10000 simulations.  
secondly, I want to have the impulse response functions and historical decomposition of the aggregates  
and the variance of the forecast errors.

let’s come to the main topic: I won’t know how to write them as a script!  
once again, your help will be welcome;

thank you very much.

---

<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: [28 January 2023 20:13 UTC](https://forum.dynare.org/t/erreur-de-compilation/21810/10 "2023-01-28T20:13:11Z")

</div>

What do you mean with

> [@swasss](#):
>
> I won’t know how to write them as a script!

? It sounds like you already ran estimation on two chains.

---

<div class="post-metadata">

### Author: ![swasss](https://forum.dynare.org/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@swasss](https://forum.dynare.org/u/swasss)
#### Post date: [28 January 2023 21:07 UTC](https://forum.dynare.org/t/erreur-de-compilation/21810/11 "2023-01-28T21:07:44Z")

</div>

I wanted to say script, sorry

I haven’t made an estimate yet I don’t even know how to introduce Bayesian

---

<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: [31 January 2023 06:59 UTC](https://forum.dynare.org/t/erreur-de-compilation/21810/12 "2023-01-31T06:59:25Z")

</div>

Have a look at [examples/fs2000.mod · master · Dynare / dynare · GitLab](https://git.dynare.org/Dynare/dynare/-/blob/master/examples/fs2000.mod)

---

<div class="post-metadata">

### Author: ![swasss](https://forum.dynare.org/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@swasss](https://forum.dynare.org/u/swasss)
#### Post date: [1 February 2023 18:32 UTC](https://forum.dynare.org/t/erreur-de-compilation/21810/13 "2023-02-01T18:32:06Z")

</div>

thank you very much Professor Johaness, i will take a look at it

---

<div class="post-metadata">

### Author: ![swasss](https://forum.dynare.org/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@swasss](https://forum.dynare.org/u/swasss)
#### Post date: [1 February 2023 18:51 UTC](https://forum.dynare.org/t/erreur-de-compilation/21810/14 "2023-02-01T18:51:35Z")

</div>

the result of search was stisfactory, however there are not the IRF, decomposition of the variance and forecast, so you would not have another one git to offer me?

---

<div class="post-metadata">

### Author: ![swasss](https://forum.dynare.org/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@swasss](https://forum.dynare.org/u/swasss)
#### Post date: [2 February 2023 15:37 UTC](https://forum.dynare.org/t/erreur-de-compilation/21810/15 "2023-02-02T15:37:55Z")

</div>

hello dear Professor Johannes Pfeifer  
here’s my mod file. there is a problem that i can’t detect

[limsa.mod](https://forum.dynare.org/uploads/short-url/vEp84cAiPCOlhSQgdmfwef6Xw0x.mod) (8.6 KB)

here is the message i receive :  
There are 12 eigenvalue(s) larger than 1 in modulus  
for 12 forward-looking variable(s)

The rank condition is verified.

You did not declare endogenous variables after the estimation/calib\_smoother command.  
Posterior IRFs will be computed for the 37 endogenous variables  
of your model, this can take a long time …

Choose one of the following options:

[1] Consider all the endogenous variables.  
[2] Consider all the observed endogenous variables.  
[3] Stop Dynare and change the mod file.  
[4] Consider all the endogenous and auxiliary variables.

options [default is 1] = 3

Prior distribution for parameter beta has unbounded density!  
Prior distribution for parameter theta1 has unbounded density!  
Prior distribution for parameter theta2 has unbounded density!  
Prior distribution for parameter theta3 has unbounded density!  
Prior distribution for parameter phiMR has unbounded density!  
Prior distribution for parameter delta has unbounded density!  
Prior distribution for parameter deltaG has unbounded density!  
Error using beta\_specification  
Beta prior (for gammaG). Given the declared prior expectation, prior lower and upper bounds, the prior std. has to be  
smaller than 0.000000.

Error in set\_prior (line 177)  
[bayestopt\_.p6(k(i)), bayestopt\_.p7(k(i))] = beta\_specification(bayestopt\_.p1(k(i)), bayestopt\_.p2(k(i))^2, bayestopt\_.p3(k(i)), bayestopt\_.p4(k(i)), bayestopt\_.name{k(i)});

Error in dynare\_estimation\_init (line 167)  
[xparam1,estim\_params\_,bayestopt\_,lb,ub,M\_] = set\_prior(estim\_params\_,M\_,options\_);

Error in dynare\_estimation\_1 (line 110)  
dynare\_estimation\_init(var\_list\_, dname, [], M\_, options\_, oo\_, estim\_params\_, bayestopt\_);

Error in dynare\_estimation (line 118)  
dynare\_estimation\_1(var\_list,dname);

Error in limsa.driver (line 687)  
oo\_recursive\_=dynare\_estimation(var\_list\_);

Error in dynare (line 281)  
evalin(‘base’,[fname ‘.driver’]);

---

<div class="post-metadata">

### Author: ![swasss](https://forum.dynare.org/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@swasss](https://forum.dynare.org/u/swasss)
#### Post date: [5 February 2023 16:56 UTC](https://forum.dynare.org/t/erreur-de-compilation/21810/16 "2023-02-05T16:56:21Z")

</div>

Hello dear Professor Johannes Pfeifer

the message I receive is the following:  
Error using makedataset  
makedataset: I can’t find a datafile (with allowed extension m, mat, csv, xls or xlsx)!

Error in dynare\_estimation\_init (line 553)  
[dataset\_, dataset\_info, newdatainterfaceflag] = makedataset(options\_, options\_.dsge\_var\*options\_.dsge\_varlag, gsa\_flag);

Error in dynare\_estimation\_1 (line 110)  
dynare\_estimation\_init(var\_list\_, dname, [], M\_, options\_, oo\_, estim\_params\_, bayestopt\_);

Error in dynare\_estimation (line 118)  
dynare\_estimation\_1(var\_list,dname);

Error in limsa.driver (line 667)  
oo\_recursive\_=dynare\_estimation(var\_list\_);

Error in dynare (line 281)  
evalin(‘base’,[fname ‘.driver’]);  
here is my mod file  
[limsa.mod](https://forum.dynare.org/uploads/short-url/yMwiWw21EVXvCelAf63OvXa49t7.mod) (8.5 KB)

---

<div class="post-metadata">

### Author: ![swasss](https://forum.dynare.org/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@swasss](https://forum.dynare.org/u/swasss)
#### Post date: [5 February 2023 16:57 UTC](https://forum.dynare.org/t/erreur-de-compilation/21810/17 "2023-02-05T16:57:35Z")

</div>

your answer is highly appreciated

---

<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: [5 February 2023 20:32 UTC](https://forum.dynare.org/t/erreur-de-compilation/21810/18 "2023-02-05T20:32:42Z")

</div>

You did not provide a datafile.

---

<div class="post-metadata">

### Author: ![swasss](https://forum.dynare.org/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@swasss](https://forum.dynare.org/u/swasss)
#### Post date: [6 February 2023 21:06 UTC](https://forum.dynare.org/t/erreur-de-compilation/21810/19 "2023-02-06T21:06:01Z")

</div>

I can’t insert my database in the git, do you have a git with more details that can facilitate the insertion?

---

<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 February 2023 15:10 UTC](https://forum.dynare.org/t/erreur-de-compilation/21810/20 "2023-02-07T15:10:13Z")

</div>

You should be able to upload a zip-file.

[Next page](https://forum.dynare.org/t/erreur-de-compilation/21810.md?page=2)
