Bayesian estimation - data/measurement equation problem
Posted: Tue Oct 15, 2013 9:55 pm
Hello,
I am having problem estimating the Gertler - Karadi (2011) model of uncoventional monetary policy.
I have read (hopefully) all threads on this forum regarding this issue, however, I am still struggling to produce decent results.
From the things I tried - at first, I followed approach of SW, defining measurement equations in the form of
I have also tried to pass the data through the HP filter to get rid of trend (then removing measurement equations and having observables defined only as y, c etc.) - this didn't work as well.
The only method that worked and with which dynare was able to find mode and subsequently run Metropolis-Hastings was to have the data log differenced and have measurement equations including measurement error
I also tried to multiply the observable data by the factor of 100 as in SW, but reading their code I was not so sure how should I update the rest of my .mod file, mainly the steady state values to get this working...
Same goes with values for prior distributions, I tried many many different values.
I attached the .mod file (available also at macromodels database) as well as the data, with the version including measurement equations, without me errors defined. Data are log differenced, taken from FRED database and include real GDP growth (levels), consumption, net investment, bank net worth and inflation (calculated as log differenced CPI)
I would be thankful for any help
I am having problem estimating the Gertler - Karadi (2011) model of uncoventional monetary policy.
I have read (hopefully) all threads on this forum regarding this issue, however, I am still struggling to produce decent results.
From the things I tried - at first, I followed approach of SW, defining measurement equations in the form of
- Code: Select all
y_obs = y - y(-1)
- Code: Select all
Error using chol
Matrix must be positive definite.
I have also tried to pass the data through the HP filter to get rid of trend (then removing measurement equations and having observables defined only as y, c etc.) - this didn't work as well.
The only method that worked and with which dynare was able to find mode and subsequently run Metropolis-Hastings was to have the data log differenced and have measurement equations including measurement error
- Code: Select all
y_obs = y - y(-1) + me_y
- Code: Select all
var me_y; stderr 1;
I also tried to multiply the observable data by the factor of 100 as in SW, but reading their code I was not so sure how should I update the rest of my .mod file, mainly the steady state values to get this working...
Same goes with values for prior distributions, I tried many many different values.
I attached the .mod file (available also at macromodels database) as well as the data, with the version including measurement equations, without me errors defined. Data are log differenced, taken from FRED database and include real GDP growth (levels), consumption, net investment, bank net worth and inflation (calculated as log differenced CPI)
I would be thankful for any help