One-step HP-filter estimation inside DSGE

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.

One-step HP-filter estimation inside DSGE

Postby JoseDNino » Wed May 04, 2016 9:40 pm

Hello everyone,

I'm trying to replicate what Ferroni (2001) "Trend Agnostic One-Step Estimation of DSGE Models" did, by filtering the observed trending variables inside the model by means of observation equations. Here is the observation equations I'm specifying for detrending y and h:

y_obs = y + y_trend;
(y_trend-y_trend(-1))-(y_trend(-1)-y_trend(-2))= n_y;

h_obs = h + h_trend;
(h_trend-h_trend(-1))-(h_trend(-1)-h_trend(-2))= n_h;

Here my observable variables (i.e. y_obs and h_obs) are composed of a cycle (i.e y and h) and a trend (y_trend and h_trend), and the trend components follow what Stock and Watson defined as a one-sided HP-filter.

However, at the estimation I get the error "Error using chol. Matrix must be positive definite"

I'd really appreciate you could check my model and the way I'm doing things and you could tell me what's wrong with it. Thanks!!!
Attachments
Ferroni_4.mod
(1.46 KiB) Downloaded 109 times
JoseDNino
 
Posts: 12
Joined: Mon Apr 04, 2016 3:25 pm

Re: One-step HP-filter estimation inside DSGE

Postby jpfeifer » Fri May 06, 2016 8:52 am

Please provide the data file
------------
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: One-step HP-filter estimation inside DSGE

Postby JoseDNino » Tue May 10, 2016 9:53 pm

Here is the data file and the mod file. Thanks!
Attachments
Ferroni.zip
(10.43 KiB) Downloaded 101 times
JoseDNino
 
Posts: 12
Joined: Mon Apr 04, 2016 3:25 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 15 guests