# Comparative static analysis

**URL:** <https://forum.dynare.org/t/comparative-static-analysis/5414>\
**Category:** Dynare help (legacy posts)\
**Created:** [5 April 2016 03:43 UTC](https://forum.dynare.org/t/comparative-static-analysis/5414 "2016-04-05T03:43:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Da.Y](https://forum.dynare.org/letter_avatar_proxy/v4/letter/d/49beb7/32.png) [@Da.Y](https://forum.dynare.org/u/Da.Y)\
**Post date:** [5 April 2016 03:43 UTC](https://forum.dynare.org/t/comparative-static-analysis/5414/1 "2016-04-05T03:43:40Z")

</div>

Hi,  
I would like someone to explain to me how to do a comparative static of some of the endogenous variables as some of the parameters change. Any sample code or reading that you can recommend to me will be very helpful.  
Thank you 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:** [5 April 2016 19:01 UTC](https://forum.dynare.org/t/comparative-static-analysis/5414/2 "2016-04-05T19:01:14Z")

</div>

The term comparative static analysis is not well-defined. You did not specify the object you want to consider. But in general you seem to want to run a loop over parameter values as in [[Question: Dynare in a loop over a parameter space](https://forum.dynare.org/t/question-dynare-in-a-loop-over-a-parameter-space/5398/3)) and [[Loop over parameters](https://forum.dynare.org/t/loop-over-parameters/3335/1)) and then read out the object out of the results structure oo\_ that you need.

---

<div class="post-metadata">

**Author:** ![Da.Y](https://forum.dynare.org/letter_avatar_proxy/v4/letter/d/49beb7/32.png) [@Da.Y](https://forum.dynare.org/u/Da.Y)\
**Post date:** [6 April 2016 14:41 UTC](https://forum.dynare.org/t/comparative-static-analysis/5414/3 "2016-04-06T14:41:26Z")

</div>

Thank you for your response. the objective is to look how the changes of different parameters can affect the steady state variables. I think what you send me will be helpful. Thank you again
