Steady State Values as Parameters

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.

Steady State Values as Parameters

Postby toyaakira » Mon Jul 22, 2013 2:10 am

Hi everybody,

I am solving a DSGE model using Bayesian Estimation with Dynare 4.3.2. Since the model is log-linearized, the steady state values are shown in the model equations as parameters.
Besides, to solve one of my parameter "eps", I need to use a Fsolve function. THerefore, I write a steady state file.
But when I run my mod, it always report error as follows:

Error: File: li_steadystate.m Line: 53 Column: 1
"eps" previously appeared to be used as a function or command, conflicting with its use here as the
name of a variable.
A possible cause of this error is that you forgot to initialize the
variable, or you have initialized it implicitly using load or eval.


"eps" is a parameter in my .mod file, and by using the steady state conditions, I have solved it as in the code.

Could anyone tell me how to settle the problem? THanks a lot!
Attachments
li.mod
(5.29 KiB) Downloaded 97 times
li_steadystate.m
(3.23 KiB) Downloaded 92 times
toyaakira
 
Posts: 2
Joined: Mon Jul 22, 2013 1:54 am

Re: Steady State Values as Parameters

Postby jpfeifer » Mon Jul 22, 2013 6:48 am

Try giving it a different name. eps is a builtin matlab-function. This yields a naming conflict.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Steady State Values as Parameters

Postby toyaakira » Mon Jul 22, 2013 9:13 am

jpfeifer wrote:Try giving it a different name. eps is a builtin matlab-function. This yields a naming conflict.


Thanks for your reply! It works now.

However, some steady state values solved are complex numbers, and the estimation could not continue. THe error shows as follows:

Error in computing likelihood for initial parameter values
??? Error using ==> print_info at 65
Some updated params are complex


Could you please tell me what should I do now? Does it comes from my incorrect estimated parameters initialization? Are the estimated parameters necessarily be initialized?

I have posted my updated files.

THanks!
Attachments
li.mod
(5.29 KiB) Downloaded 104 times
li_steadystate.m
(3.8 KiB) Downloaded 98 times
toyaakira
 
Posts: 2
Joined: Mon Jul 22, 2013 1:54 am

Re: Steady State Values as Parameters

Postby jpfeifer » Mon Jul 22, 2013 10:13 am

If you do not specify initial values for the parameters, Dynare takes the prior mean. Try providing explicit starting values.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 7 guests