# Estimation problem in Julia

**URL:** https://forum.dynare.org/t/estimation-problem-in-julia/25412
**Category:** Dynare Julia
**Created:** [25 March 2024 08:43 UTC](https://forum.dynare.org/t/estimation-problem-in-julia/25412 "2024-03-25T08:43:09Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Luce](https://forum.dynare.org/letter_avatar_proxy/v4/letter/l/5f8ce5/32.png) [@Luce](https://forum.dynare.org/u/Luce)
#### Post date: [25 March 2024 08:43 UTC](https://forum.dynare.org/t/estimation-problem-in-julia/25412/1 "2024-03-25T08:43:10Z")

</div>

Dear all,  
I try to perform a simple exercise through Julia but I fail to make estimation. The error information is : **type EstimatedParameters has no field symbols.**  
I do not understand what mistake I have. Here are my data and mod file. Thanks for your help very much!  
[dataset.csv](https://forum.dynare.org/uploads/short-url/zXoehwEZhMghLpTmSt1YDso8Eon.csv) (1.6 KB)  
[RBC.mod](https://forum.dynare.org/uploads/short-url/l6kLxwW3vuWJdCnucezGkqta7x3.mod) (1.3 KB)

---

<div class="post-metadata">

### Author: ![MichelJuillard](https://forum.dynare.org/user_avatar/forum.dynare.org/micheljuillard/32/5318_2.png) [@MichelJuillard](https://forum.dynare.org/u/MichelJuillard)
#### Post date: [25 March 2024 10:02 UTC](https://forum.dynare.org/t/estimation-problem-in-julia/25412/2 "2024-03-25T10:02:11Z")

</div>

Dear Luce,

- DynareJulia doesn’t support the old format of declaring estimated parameters with lower bound and upper bound (Sorry the documentation is mistaken, I will correct it)  
Note that you don’t need it as the natural boundaries for the Beta distribution is 0 and 1.
- In `dataset.csv` you must specify the name of the observed variable in the header on the first line of the file

Just a remark, `stoch_simul` without option computes a second order approximation, but the `estimation` command estimates the linear approximation of the model

I attach my version of your files

[RBCmj1.mod](https://forum.dynare.org/uploads/short-url/1kc4ltIPAWwFyBDi24DpRsM0YcG.mod) (1.2 KB)  
[dataset\_mj.csv](https://forum.dynare.org/uploads/short-url/804z2S2oZwnee7OHtrh0F55H0Az.csv) (1.6 KB)

Best

Michel

---

<div class="post-metadata">

### Author: ![Luce](https://forum.dynare.org/letter_avatar_proxy/v4/letter/l/5f8ce5/32.png) [@Luce](https://forum.dynare.org/u/Luce)
#### Post date: [25 March 2024 13:49 UTC](https://forum.dynare.org/t/estimation-problem-in-julia/25412/3 "2024-03-25T13:49:47Z")

</div>

Dear prof. Michel  
Thanks for your help very much! I have tried to run your version. The program succed to make stochastic simulation, but still fail to make estimation. The error information is also: **type EstimatedParameters has no field symbols.** Maybe should I use any other package besides Dynare?  
Thank you again! I sincerely appreciate the work from Dynare team for making mod file implemented in Julia.

Best Regards  
Luce

---

<div class="post-metadata">

### Author: ![MichelJuillard](https://forum.dynare.org/user_avatar/forum.dynare.org/micheljuillard/32/5318_2.png) [@MichelJuillard](https://forum.dynare.org/u/MichelJuillard)
#### Post date: [25 March 2024 13:59 UTC](https://forum.dynare.org/t/estimation-problem-in-julia/25412/4 "2024-03-25T13:59:19Z")

</div>

Can you please check which version of Dynare.jl do you use? I tested the files above with version v0.9.5

---

<div class="post-metadata">

### Author: ![MichelJuillard](https://forum.dynare.org/user_avatar/forum.dynare.org/micheljuillard/32/5318_2.png) [@MichelJuillard](https://forum.dynare.org/u/MichelJuillard)
#### Post date: [25 March 2024 14:19 UTC](https://forum.dynare.org/t/estimation-problem-in-julia/25412/5 "2024-03-25T14:19:38Z")

</div>

I have now corrected the documentation concerning `estimated_parameters`.

---

<div class="post-metadata">

### Author: ![Luce](https://forum.dynare.org/letter_avatar_proxy/v4/letter/l/5f8ce5/32.png) [@Luce](https://forum.dynare.org/u/Luce)
#### Post date: [26 March 2024 01:24 UTC](https://forum.dynare.org/t/estimation-problem-in-julia/25412/6 "2024-03-26T01:24:57Z")

</div>

Thank you! I have updated the package and it works.

---

<div class="post-metadata">

### Author: ![Yaakov](https://forum.dynare.org/user_avatar/forum.dynare.org/yaakov/32/15432_2.png) [@Yaakov](https://forum.dynare.org/u/Yaakov)
#### Post date: [31 March 2024 04:04 UTC](https://forum.dynare.org/t/estimation-problem-in-julia/25412/7 "2024-03-31T04:04:35Z")

</div>

> [@MichelJuillard](#):
>
> corrected the documentation c

So Dynare Julia support estimation? I was under the impression it is not supported yet, based on the list of the “Supported Dynare instructions” in the github page:  
[GitHub - DynareJulia/Dynare.jl: A Julia rewrite of Dynare: solving, simulating and estimating DSGE models.](https://github.com/DynareJulia/Dynare.jl?tab=readme-ov-file#supported-dynare-instructions)

 ![image](https://forum.dynare.org/uploads/default/original/3X/9/5/95b4bfd35163d0f90b9416eafb3c837bd9ea89aa.png)

---

<div class="post-metadata">

### Author: ![Luce](https://forum.dynare.org/letter_avatar_proxy/v4/letter/l/5f8ce5/32.png) [@Luce](https://forum.dynare.org/u/Luce)
#### Post date: [31 March 2024 04:25 UTC](https://forum.dynare.org/t/estimation-problem-in-julia/25412/8 "2024-03-31T04:25:15Z")

</div>

Yeah! Please refer to this documentation.  
[Estimation · Dynare.jl (dynarejulia.github.io)](https://dynarejulia.github.io/Dynare.jl/dev/model-file/estimation/)

---

<div class="post-metadata">

### Author: ![MichelJuillard](https://forum.dynare.org/user_avatar/forum.dynare.org/micheljuillard/32/5318_2.png) [@MichelJuillard](https://forum.dynare.org/u/MichelJuillard)
#### Post date: [31 March 2024 09:19 UTC](https://forum.dynare.org/t/estimation-problem-in-julia/25412/9 "2024-03-31T09:19:27Z")

</div>

Thanks @Yaakov for reporting the inaccuracy. I fixed the README file

---

<div class="post-metadata">

### Author: ![kipfilet](https://forum.dynare.org/letter_avatar_proxy/v4/letter/k/919ad9/32.png) [@kipfilet](https://forum.dynare.org/u/kipfilet)
#### Post date: [1 April 2024 16:48 UTC](https://forum.dynare.org/t/estimation-problem-in-julia/25412/10 "2024-04-01T16:48:05Z")

</div>

Hi all,  
I am having the same issue on Dynare v0.9.6.  
stoch\_simul works fine, but any estimated\_params block yields the error “ERROR: LoadError: type EstimatedParameters has no field symbols”  
This is in a mod file that worked fine on Matlab.

---

<div class="post-metadata">

### Author: ![MichelJuillard](https://forum.dynare.org/user_avatar/forum.dynare.org/micheljuillard/32/5318_2.png) [@MichelJuillard](https://forum.dynare.org/u/MichelJuillard)
#### Post date: [1 April 2024 17:05 UTC](https://forum.dynare.org/t/estimation-problem-in-julia/25412/11 "2024-04-01T17:05:52Z")

</div>

Could you please share you the \*.mod file and the entire log?

---

<div class="post-metadata">

### Author: ![kipfilet](https://forum.dynare.org/letter_avatar_proxy/v4/letter/k/919ad9/32.png) [@kipfilet](https://forum.dynare.org/u/kipfilet)
#### Post date: [2 April 2024 01:31 UTC](https://forum.dynare.org/t/estimation-problem-in-julia/25412/12 "2024-04-02T01:31:52Z")

</div>

Thank you for your response Michel. Restarting Julia seems to have made the problem go away. The .mod file seems to be running fine now.

---

<div class="post-metadata">

### Author: ![MichelJuillard](https://forum.dynare.org/user_avatar/forum.dynare.org/micheljuillard/32/5318_2.png) [@MichelJuillard](https://forum.dynare.org/u/MichelJuillard)
#### Post date: [2 April 2024 06:47 UTC](https://forum.dynare.org/t/estimation-problem-in-julia/25412/13 "2024-04-02T06:47:46Z")

</div>

Yes, indeed. It is often necessary to restart Julia after updating for loading the last version of the package.
