parameter drift with parameters' bounds

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.

parameter drift with parameters' bounds

Postby HouseC » Sat Feb 04, 2017 4:17 am

Dears,

I'm trying to estimate some parameters drifts but these parameters are bounded. For example, if I assume capital share in CD production function itself follows AR (1) process. Y_t=A_t*K_t^(alpha_t)*L_t^(1-alpha_t), and alpha_t=(1-rho)*alpha+rho*alpha_(t-1).
I can put the persistence and standard deviation into estimation and specify the bound for these estimated parameters. Yet how can I guarantee that alpha_t is between 0 and 1 for all the times.
I read related literature and people suggest to use the smoothed Kalman filter. Can any one elaborate more about it? And how to implement this smoother in dynare? Is there any sample code to follow?

Best,
House
HouseC
 
Posts: 41
Joined: Fri Apr 19, 2013 3:36 am

Re: parameter drift with parameters' bounds

Postby HouseC » Sun Feb 05, 2017 4:04 am

Hi, any one could help?
HouseC
 
Posts: 41
Joined: Fri Apr 19, 2013 3:36 am

Re: parameter drift with parameters' bounds

Postby jpfeifer » Sun Feb 05, 2017 4:30 pm

1. What is the reference for what you are trying to do?
2. In general, if you work with a log-linear approximation, there is not way to bound variables (like your capital share) due to linearity. One has to live with this and hope that the data do not assign much probability to it violating the theoretical bounds.
------------
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: parameter drift with parameters' bounds

Postby jpfeifer » Tue Mar 21, 2017 8:10 am

I read the relevant part of Seoane (2016). Unfortunately, the implementation is somewhat involved and only possible in Dynare with modifications to
Code: Select all
dsge_likelihood.m

The idea is the following: for each draw of the MCMC, you run the Kalman smoother on the model. If the smoothed "parameters" (which are actually variables now, because they are time-varying) violate the imposed bounds, you reject this draw.
------------
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: parameter drift with parameters' bounds

Postby HouseC » Tue Mar 21, 2017 12:18 pm

jpfeifer wrote:I read the relevant part of Seoane (2016). Unfortunately, the implementation is somewhat involved and only possible in Dynare with modifications to
Code: Select all
dsge_likelihood.m

The idea is the following: for each draw of the MCMC, you run the Kalman smoother on the model. If the smoothed "parameters" (which are actually variables now, because they are time-varying) violate the imposed bounds, you reject this draw.


Dear Johannes,

You mean that currently it's impossible to implement the algorithm in Seoane (2016) using dynare? Just want to confirm this issue.

Best,
Sihao
HouseC
 
Posts: 41
Joined: Fri Apr 19, 2013 3:36 am

Re: parameter drift with parameters' bounds

Postby jpfeifer » Tue Mar 21, 2017 12:21 pm

It is not prepackaged, but can be implemented in a few lines of code.
------------
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: parameter drift with parameters' bounds

Postby HouseC » Wed Mar 22, 2017 2:21 am

jpfeifer wrote:It is not prepackaged, but can be implemented in a few lines of code.

Many thanks! your suggestion is really helpful!
HouseC
 
Posts: 41
Joined: Fri Apr 19, 2013 3:36 am


Return to Dynare help

Who is online

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