# Max likelihood and mode\_file

**URL:** <https://forum.dynare.org/t/max-likelihood-and-mode-file/11868>\
**Category:** ML/Bayesian estimation\
**Created:** [21 May 2018 10:06 UTC](https://forum.dynare.org/t/max-likelihood-and-mode-file/11868 "2018-05-21T10:06:00Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![punnoosejacob](https://forum.dynare.org/user_avatar/forum.dynare.org/punnoosejacob/32/5976_2.png) [@punnoosejacob](https://forum.dynare.org/u/punnoosejacob)\
**Post date:** [28 June 2018 01:18 UTC](https://forum.dynare.org/t/max-likelihood-and-mode-file/11868/4 "2018-06-28T01:18:31Z")

</div>

Perhaps the code in the following post would help you copy the contents of the mode file into the estimated\_params\_init section.

> [@Code to re-initiate mode estimation using the estimated\_param\_init block](https://forum.dynare.org/t/code-to-re-initiate-mode-estimation-using-the-estimated-param-init-block/11678):
>
> I paste below some code to create an excel file to take the estimated mode from a failed estimation run, and then re-start the estimation using the estimated mode as the new initial values. After the excel file is produced, just copy and paste the contents into the estimated\_params\_init section in the mod file. Cheers Reuben load([M\_.fname '\_mode']); xlswrite([M\_.fname 'PosteriorMode.xlsx'], cellstr(repmat('stderr',estim\_params\_.nvx,1)), 'PosteriorMode','A1'); xlswrite([M\_.fname 'Poster…

Reuben

---

_[View the full topic](https://forum.dynare.org/t/max-likelihood-and-mode-file/11868)._
