# The Jacobian is singular but Dynare still gives me results

**URL:** <https://forum.dynare.org/t/the-jacobian-is-singular-but-dynare-still-gives-me-results/14874>\
**Category:** Stochastic simulations\
**Created:** [12 December 2019 09:22 UTC](https://forum.dynare.org/t/the-jacobian-is-singular-but-dynare-still-gives-me-results/14874 "2019-12-12T09:22:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![fuyangzhao](https://forum.dynare.org/letter_avatar_proxy/v4/letter/f/41988e/32.png) [@fuyangzhao](https://forum.dynare.org/u/fuyangzhao)\
**Post date:** [12 December 2019 09:22 UTC](https://forum.dynare.org/t/the-jacobian-is-singular-but-dynare-still-gives-me-results/14874/1 "2019-12-12T09:22:55Z")

</div>

Hi Prof,

Here is my story…  
I wrote a mod file with calibrated parameters. It went well. And I get desired results. Then I tried to estimated my model, but it reports a series of problems.

So I used `model_diagnostics`. It shows the following

> MODEL\_DIAGNOSTICS: The Jacobian of the static model is singular  
> MODEL\_DIAGNOSTICS: there is 6 colinear relationships between the variables and the equations

Back to the mod file where there is no estimation, `model_diagnostics` also gives me the same message… **SIX colinear relationship?** Aren’t they too many?

And the most strange thing is, even if `model_diagnostics` tells me that “The Jacobian is singular”, my BK condition is satisfied. There is no unit root at all. What’s more, IRFs, policy functions, and transition functions are well reported.

Why is that? And is there any clue to fix my problem?  
I attach my mod file below.

Thanks in advance!  
Best

I was trying to estimate my model but the result was

---

<div class="post-metadata">

**Author:** ![fuyangzhao](https://forum.dynare.org/letter_avatar_proxy/v4/letter/f/41988e/32.png) [@fuyangzhao](https://forum.dynare.org/u/fuyangzhao)\
**Post date:** [12 December 2019 09:24 UTC](https://forum.dynare.org/t/the-jacobian-is-singular-but-dynare-still-gives-me-results/14874/2 "2019-12-12T09:24:56Z")

</div>

Here is my mod file.  
Please help…

---

<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:** [12 December 2019 09:48 UTC](https://forum.dynare.org/t/the-jacobian-is-singular-but-dynare-still-gives-me-results/14874/3 "2019-12-12T09:48:50Z")

</div>

You did not provide `paramvalue.mat`

---

<div class="post-metadata">

**Author:** ![fuyangzhao](https://forum.dynare.org/letter_avatar_proxy/v4/letter/f/41988e/32.png) [@fuyangzhao](https://forum.dynare.org/u/fuyangzhao)\
**Post date:** [12 December 2019 10:33 UTC](https://forum.dynare.org/t/the-jacobian-is-singular-but-dynare-still-gives-me-results/14874/4 "2019-12-12T10:33:43Z")

</div>

The example mod file does not need` paramvalue.mat`  
I’m so sorry.  
I forgot to delete that line.

---

<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:** [12 December 2019 17:34 UTC](https://forum.dynare.org/t/the-jacobian-is-singular-but-dynare-still-gives-me-results/14874/5 "2019-12-12T17:34:02Z")

</div>

Most of the problem comes from your use of

```auto
log(Phi) = (1-rho_phi)*log(STEADY_STATE(Phi)) + rho_phi*log(Phi(-1)) + Eps_phi;

```

The steady state of Phi cannot be endogenously computed, it seems. If you use

```auto
log(Phi) = (1-rho_phi)*log(varphi) + rho_phi*log(Phi(-1)) + Eps_phi;

```

i.e. replace the steady state operator by the steady state you set in the `steady_state_model`-block, one of the warnings disappears. For the other shock processes, the problem seems to be the same.

---

<div class="post-metadata">

**Author:** ![fuyangzhao](https://forum.dynare.org/letter_avatar_proxy/v4/letter/f/41988e/32.png) [@fuyangzhao](https://forum.dynare.org/u/fuyangzhao)\
**Post date:** [13 December 2019 02:47 UTC](https://forum.dynare.org/t/the-jacobian-is-singular-but-dynare-still-gives-me-results/14874/6 "2019-12-13T02:47:19Z")

</div>

Thank you so much! Now no problems are detected!
