# Estimation with random walk

**URL:** <https://forum.dynare.org/t/estimation-with-random-walk/975>\
**Category:** Dynare v4 (legacy)\
**Created:** [19 March 2009 13:57 UTC](https://forum.dynare.org/t/estimation-with-random-walk/975 "2009-03-19T13:57:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexnomad](https://forum.dynare.org/letter_avatar_proxy/v4/letter/a/bbe5ce/32.png) [@alexnomad](https://forum.dynare.org/u/alexnomad)\
**Post date:** [19 March 2009 13:57 UTC](https://forum.dynare.org/t/estimation-with-random-walk/975/1 "2009-03-19T13:57:05Z")

</div>

Hello all.  
I am trying to estimate by maximum likelihood model which includes random walk equation. When optimization starts dynare stack on the same value function in iterations and shows NaN in each iteration. How effectively I can estimate this model ? Thanks a lot in advance

---

<div class="post-metadata">

**Author:** ![stepan-a](https://forum.dynare.org/user_avatar/forum.dynare.org/stepan-a/32/6652_2.png) [@stepan-a](https://forum.dynare.org/u/stepan-a)\
**Post date:** [19 March 2009 14:09 UTC](https://forum.dynare.org/t/estimation-with-random-walk/975/2 "2009-03-19T14:09:10Z")

</div>

There is a detailed example in the [Dynare user guide](http://www.cepremap.cnrs.fr/juillard/mambo/download/manual/Dynare_UserGuide_WebBeta.pdf) (chapter six).

Stéphane.

---

<div class="post-metadata">

**Author:** ![iacoviel](https://forum.dynare.org/letter_avatar_proxy/v4/letter/i/ea666f/32.png) [@iacoviel](https://forum.dynare.org/u/iacoviel)\
**Post date:** [19 March 2009 18:59 UTC](https://forum.dynare.org/t/estimation-with-random-walk/975/3 "2009-03-19T18:59:39Z")

</div>

There is some issue when one uses Dynare 4 to estimate a model with unit roots + deterministic trends + measurement error. One workaround is to treat measurement errors as additional shocks to the observation equations inside the model block. I posted a message a while ago but noone answered 😢

---

<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 July 2017 13:28 UTC](https://forum.dynare.org/t/estimation-with-random-walk/975/4 "2017-07-24T13:28:57Z")

</div>

Closed on 24 July 2017 13:28 UTC



---

<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 July 2017 13:29 UTC](https://forum.dynare.org/t/estimation-with-random-walk/975/5 "2017-07-24T13:29:43Z")

</div>

Archived on 24 July 2017 13:29 UTC


