inequality restrictions on parameters in estimation

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.

inequality restrictions on parameters in estimation

Postby np2333 » Fri Aug 15, 2014 3:47 pm

Hi,
I just wanted to check if there is a way to impose inequality restrictions on parameters while estimating them. For instance, if i want to estimate 2 parameters a1 and a2, then how can i impose a constraint like a1<=a2, or a1+a2<=1 For the first one for instance, it is correct to dodo the following?

a1 0.5,1E-5,1, a2 BETA_PDF,0.85,0.1;

a2 0.2,1E-5,1, BETA_PDF,0.5,0.1;
np2333
 
Posts: 29
Joined: Fri May 31, 2013 11:00 pm

Re: inequality restrictions on parameters in estimation

Postby jpfeifer » Fri Aug 15, 2014 5:11 pm

The general answer is no. However, it seems you are trying to estimate the autoregressive coefficients of an AR(2)-process. In this case you can impose that the two autoregressive roots must be smaller than 1 and then use model-local variables to recompose the autoregressive coefficients as
Code: Select all
# rho_1= (root1+root2);
# rho_2= - root1*root2;

This will assure that rho_1+rho_2<=1.

It is not correct to do:
a1 0.5,1E-5,1, a2 BETA_PDF,0.85,0.1;
a2 0.2,1E-5,1, BETA_PDF,0.5,0.1;

Dynare will not obay this upper bound and should not allow you to specify this prior. If it does, please report this and we will issue an error in future versions.
------------
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: inequality restrictions on parameters in estimation

Postby np2333 » Sat Aug 16, 2014 2:56 am

Hi Johannes,

thanks for your response. Actually its not an AR(2) model but something analogous to a model with decreasing returns to scale: For example:
y = a1*L+a2*K
where i want to impose the following restrictions:
1. a1>=0
2. a2>=0
3. a1+a2<=0
Anyway to do this?

Regarding the second point, dynare does obey the upper bound for a1 based on the value of a2 that i have declared in the calibration section of the model (the estimation parameter initialization block)
np2333
 
Posts: 29
Joined: Fri May 31, 2013 11:00 pm

Re: inequality restrictions on parameters in estimation

Postby np2333 » Sat Aug 16, 2014 3:18 am

sorry the third restriction is a1+a2<=1, not 0.
np2333
 
Posts: 29
Joined: Fri May 31, 2013 11:00 pm

Re: inequality restrictions on parameters in estimation

Postby jpfeifer » Sat Aug 16, 2014 6:48 am

I have an idea. If you can use a steady state file for your model, you can check whether these restrictions are satisfied and just cheat Dynare by telling it the steady state did not solve when the parameter restriction is not satisfied. That way, any restriction can be imposed during estimation. The only downside you have to keep in mind is that the prior is improper in this case it won't integrate to 1 anymore and you cannot use it for model comparison.
------------
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: inequality restrictions on parameters in estimation

Postby np2333 » Sat Aug 16, 2014 7:23 am

thanks for the suggestion
np2333
 
Posts: 29
Joined: Fri May 31, 2013 11:00 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 8 guests

cron