# Bayesian estimation process has many warnings

**URL:** <https://forum.dynare.org/t/bayesian-estimation-process-has-many-warnings/21482>\
**Category:** ML/Bayesian estimation\
**Created:** [21 November 2022 07:38 UTC](https://forum.dynare.org/t/bayesian-estimation-process-has-many-warnings/21482 "2022-11-21T07:38:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Duan](https://forum.dynare.org/letter_avatar_proxy/v4/letter/d/a9adbd/32.png) [@Duan](https://forum.dynare.org/u/Duan)\
**Post date:** [21 November 2022 07:38 UTC](https://forum.dynare.org/t/bayesian-estimation-process-has-many-warnings/21482/1 "2022-11-21T07:38:34Z")

</div>

Dear professor,  
I estimate a parameter, elasticity of substitution in production function, by bayesian estimation.  
[codeA1.mod](https://forum.dynare.org/uploads/short-url/zNbUjHms3IvAGcfNSwOE1sDs2M2.mod) (8.6 KB)  
[obdata1120A1.xlsx](https://forum.dynare.org/uploads/short-url/zVNwelNFbW0WKTC6hu0GPZ8Mix0.xlsx) (11.3 KB)

I get ‘mode check plots’, ‘Multivariate convergence diagnostic’,and ‘MCMC univariate convergence diagnostic’. The estimated mode is at the maximum of the posterior likelihood. The two lines stabilize horizontally and are close to each other.

 ![image](https://forum.dynare.org/uploads/default/original/2X/7/72e2f2d8c31938f6b4e8c2498ad41ab6d3617da5.png)  
 ![image](https://forum.dynare.org/uploads/default/original/2X/8/8d0e358e564854db15a8059609eb11477c80baea.png)  
 ![image](https://forum.dynare.org/uploads/default/original/2X/1/15c22be4826011182f723bae4ecc63fe83900d51.png)  
The MODEL\_DIAGNOSTICS command show “No obvious problems with this mod-file were detected”.  
However, in the process of estimation, there are lots of warnings, Matrix is close to singular or badly scaled. Results may be inaccurate.  
Can the result be accepted?  
Thanks in advance!

---

<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:** [21 November 2022 08:51 UTC](https://forum.dynare.org/t/bayesian-estimation-process-has-many-warnings/21482/2 "2022-11-21T08:51:04Z")

</div>

The first plot suggests that the parameter is not identified. The likelihood is flat.

---

<div class="post-metadata">

**Author:** ![Duan](https://forum.dynare.org/letter_avatar_proxy/v4/letter/d/a9adbd/32.png) [@Duan](https://forum.dynare.org/u/Duan)\
**Post date:** [21 November 2022 09:19 UTC](https://forum.dynare.org/t/bayesian-estimation-process-has-many-warnings/21482/3 "2022-11-21T09:19:16Z")

</div>

Thanks!
