Inconsistency in arguments with which *_steadystate is calle

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Inconsistency in arguments with which *_steadystate is calle

Postby cfp » Mon Nov 15, 2010 1:39 pm

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
cfp
 
Posts: 60
Joined: Mon Mar 15, 2010 9:18 pm

Re: Inconsistency in arguments with which *_steadystate is calle

Postby cfp » Mon Nov 15, 2010 2:59 pm

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.
cfp
 
Posts: 60
Joined: Mon Mar 15, 2010 9:18 pm

Re: Inconsistency in arguments with which *_steadystate is calle

Postby cfp » Mon Nov 15, 2010 3:04 pm

E.g.:

Code: Select all
      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;
cfp
 
Posts: 60
Joined: Mon Mar 15, 2010 9:18 pm


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 7 guests