# Matching multiple parameters to target moments

**URL:** <https://forum.dynare.org/t/matching-multiple-parameters-to-target-moments/25655>\
**Category:** Steady state\
**Created:** [30 April 2024 12:01 UTC](https://forum.dynare.org/t/matching-multiple-parameters-to-target-moments/25655 "2024-04-30T12:01:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![DiegoHidaFl](https://forum.dynare.org/letter_avatar_proxy/v4/letter/d/6bbea6/32.png) [@DiegoHidaFl](https://forum.dynare.org/u/DiegoHidaFl)\
**Post date:** [30 April 2024 18:31 UTC](https://forum.dynare.org/t/matching-multiple-parameters-to-target-moments/25655/2 "2024-04-30T18:31:53Z")

</div>

Dear prof. @jpfeifer , can you confirm that, in order to loop over parameters (for matching moments, finding optimal welfare, etc.),

1. an external steadystate m file needs to be created (as shown by willi mutschler on youtube and in other posts);
2. the external steadystate m can give an approximation of the steady states (it does not need to be precise because dynare will estimate the steady states anyways);
3. after having invoked dynare in the first loop, you need to use `[info, oo_, options_, M_] = stoch_simul(M_, options_, oo_, var_list_)` in the rest of the loops, as shown for example in [Parameter loop in Dynare 5.x - #3 by jpfeifer](https://forum.dynare.org/t/parameter-loop-in-dynare-5-x/20293/3);
4. after that, you can retrieve the information needed using M\_ and oo\_

Sorry for the inconvenience and I thank you in advance!

---

_[View the full topic](https://forum.dynare.org/t/matching-multiple-parameters-to-target-moments/25655)._
