# 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:** 6

<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:** [2 May 2024 17:22 UTC](https://forum.dynare.org/t/matching-multiple-parameters-to-target-moments/25655/6 "2024-05-02T17:22:17Z")

</div>

I know some steady state values (for example, `Lambda_S = 1`, `rgov_S = r_S ` or `rk_S = (Gamma/beta + 1 + deltaK)`, and others), but it is not enough. For capital, for example, I used `kk_S = Kkmean;` and `kb_S = Kbmean` as initial values (drawn from data).

1. In the mod file, should I create a block with `steady_state_model` for the variables I know and `initval` block for the variables I do not know but have an approximation?
2. I still do not understand the loop according to steady state guesses. I was looking at [Parameter loop in Dynare 5.x - #3 by jpfeifer](https://forum.dynare.org/t/parameter-loop-in-dynare-5-x/20293/3), [Loop over parameters - #67 by cmarch](https://forum.dynare.org/t/loop-over-parameters/3335/67) and [Looping over initial values - guide/example code - #6 by jpfeifer](https://forum.dynare.org/t/looping-over-initial-values-guide-example-code/13244/6) (with code [matlab/evaluate\_steady\_state.m · master · Dynare / dynare · GitLab](https://git.dynare.org/Dynare/dynare/-/blob/master/matlab/evaluate_steady_state.m)), to test the ideas presented. I tried to simplify it to just see the changes in the steady state value of consumption c, but `c_storage` remains empty. That loop starts in line 414 of `Loop_ss_eval.m`. In line 291, I have the sketch of steady states and, in 411, I invoke dynare.  
[SteadyStateLoop.zip](https://forum.dynare.org/uploads/short-url/9hU3CV5xkv5ejs2MXhXnWD3C77O.zip) (45.7 KB)

---

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