# Inconsistency in arguments with which \*\_steadystate is calle

**URL:** <https://forum.dynare.org/t/inconsistency-in-arguments-with-which--steadystate-is-calle/1735>\
**Category:** Dynare help (legacy posts)\
**Created:** [15 November 2010 13:39 UTC](https://forum.dynare.org/t/inconsistency-in-arguments-with-which--steadystate-is-calle/1735 "2010-11-15T13:39:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cfp](https://forum.dynare.org/letter_avatar_proxy/v4/letter/c/ed655f/32.png) [@cfp](https://forum.dynare.org/u/cfp)\
**Post date:** [15 November 2010 13:39 UTC](https://forum.dynare.org/t/inconsistency-in-arguments-with-which--steadystate-is-calle/1735/1 "2010-11-15T13:39:49Z")

</div>

The current latest code seems to omit the “ys” parameter when calling \*\_steadystate in evaluate\_likelihood. Is this deliberate?

Passing oo\_.steady\_state is useful when there’s no analytic solution since it gives a base from which to start fsolve.

Tom

---

<div class="post-metadata">

**Author:** ![cfp](https://forum.dynare.org/letter_avatar_proxy/v4/letter/c/ed655f/32.png) [@cfp](https://forum.dynare.org/u/cfp)\
**Post date:** [15 November 2010 14:59 UTC](https://forum.dynare.org/t/inconsistency-in-arguments-with-which--steadystate-is-calle/1735/2 "2010-11-15T14:59:49Z")

</div>

What would be particularly useful would be if they were all called with the return of the \*\_steadystate function from the previous call, rather than the auxiliary variable expanded version.

---

<div class="post-metadata">

**Author:** ![cfp](https://forum.dynare.org/letter_avatar_proxy/v4/letter/c/ed655f/32.png) [@cfp](https://forum.dynare.org/u/cfp)\
**Post date:** [15 November 2010 15:04 UTC](https://forum.dynare.org/t/inconsistency-in-arguments-with-which--steadystate-is-calle/1735/3 "2010-11-15T15:04:51Z")

</div>

E.g.:

```auto
		if ~isfield( oo_, 'reduced_steady_state' )
			if isfield( M_, 'orig_endo_nbr' )
				NumberOfEndogenousVariables = M_.orig_endo_nbr;
			else
				NumberOfEndogenousVariables = M_.endo_nbr;
			end
			oo_.reduced_steady_state = zeros( NumberOfEndogenousVariables );
		end
		[ys,tchek] = feval([M_.fname '_steadystate'],oo_.reduced_steady_state,...
							   [zeros(M_.exo_nbr,1);...
								oo_.exo_det_steady_state]);
		oo_.reduced_steady_state = ys;
```
