Kalman filter in a backward-looking model

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.

Kalman filter in a backward-looking model

Postby alexisgrigorieff » Wed Aug 28, 2013 4:27 pm

Hi everyone,

I basically simulate some data using a backward-looking model (using the data_gen4.m file) and then I try to use dynare to recover the filtered shocks (using the Kalman filter or smoother). I do get values for the shocks after filtering that seem to be in line with the actual values, except for nu_M (whose values are always zero after filtering). Also, when I look at oo_.SmoothedVariables.M I get a sequence of zeros which is quite surprising, given that the actual M differs significantly from zero.

I was wondering if anyone could explain to me what I am doing wrong and why the Kalman filtering does not recover the M and the nu_M properly?

Thank you very much!

Alexis
Attachments
dat_gen4.m
matlab code
(1.32 KiB) Downloaded 121 times
basic_filter4.mod
dynare code
(538 Bytes) Downloaded 115 times
alexisgrigorieff
 
Posts: 6
Joined: Mon Jul 22, 2013 11:58 am

Return to Dynare help

Who is online

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