restricting the domain of a parameter

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.

restricting the domain of a parameter

Postby openmacro » Mon Aug 29, 2011 2:03 am

Hi all,

I understand that one can restrict the domain of a parameter to be estimated in Dynare using the options provided while specifying the priors.

I was wondering though if it is possible to restrict the domain of a parameter to be estimated using a function? The ability to use a function is necessary for me because the restriction will be dependent on some other parameters (to be estimated) of the model.

Thanks.
openmacro
 
Posts: 11
Joined: Sun Jun 21, 2009 5:12 am

Re: restricting the domain of a parameter

Postby StephaneAdjemian » Tue Aug 30, 2011 4:04 pm

Hi,

There is no syntax for this. I would try to do this using a external function in the model block. For instance, suppose that we want to estimate parameters a, b, c and d and that parameter a's domain is constrained by the values of b, c and d. We define the priors as usual, but replace all the instances of parameter a in the model by FUN(a,b,c,d). Where FUN is a declared external function returning a if the constraints are satisfied and something else (to be defined) otherwise. The problem of course is that the prior density is not summing up to one but we don't care as long as we do not compare models with the marginal density of the sample.

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 5 guests