again on _SteadyState.m

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.

again on _SteadyState.m

Postby Andrea » Thu Feb 11, 2010 1:27 pm

Dear all,

I tried to use the _steadystate.m files that you posted but since my steady state depends on
parameters which are estimated and not calibrated I can't write parameters values in the _steadystate.m file.
Is it correct? So, when I run the estimation, I get the message

??? Error using ==> beta
Not enough input arguments.

Error in ==> NK3a2_SteadyState at 12
ys=[0 0 -log(beta) -log(beta) 0 0];
Error in ==> dynare_estimation_1 at 286
[ys,tchek] = feval([M_.fname '_steadystate'],...

Error in ==> dynare_estimation at 62
dynare_estimation_1(var_list,varargin{:});

Error in ==> NK3a2 at 179
dynare_estimation(var_list_);

Error in ==> dynare at 132
evalin('base',fname) ;

Can anybody help me?
Thank you

Andrea
Andrea
 
Posts: 6
Joined: Thu Nov 12, 2009 2:06 pm

Re: again on _SteadyState.m

Postby StephaneAdjemian » Sat Feb 20, 2010 12:48 am

Dear Andrea,

Matlab doesn't understand here that beta is a parameter (and not a function of the statistical toolbox). Just add

Code: Select all
beta = NaN;


at the top of the functions *_steadystate.

Best,
Stéphane.
Stéphane Adjemian
Université du Maine, GAINS and DynareTeam
https://stepan.adjemian.eu
StephaneAdjemian
 
Posts: 429
Joined: Wed Jan 05, 2005 4:24 pm
Location: Paris, France.

Re: again on _SteadyState.m

Postby Andrea » Tue Feb 23, 2010 9:18 am

Dear Stéphane,
thank you for your reply.
I solved my problem writing my steady state in terms of M_.params(i).
Best,

Andrea
Andrea
 
Posts: 6
Joined: Thu Nov 12, 2009 2:06 pm

Re: again on _SteadyState.m

Postby StephaneAdjemian » Tue Feb 23, 2010 10:18 am

It's another possibilty... But be aware that if you add a parameter in your list of declared parameters you may have to change the steady state file (if you declare the new parameter before beta, the value of index i needs to be changed).

Best, Stéphane.
Stéphane Adjemian
Université du Maine, GAINS and DynareTeam
https://stepan.adjemian.eu
StephaneAdjemian
 
Posts: 429
Joined: Wed Jan 05, 2005 4:24 pm
Location: Paris, France.


Return to Dynare help

Who is online

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