DsgeSmoother - State Space of Durbin and Koopman
Posted: Thu Mar 30, 2017 6:25 am
Hello dear all,
I am seeing that DsgeSmoother.m follows notation of Durbin/Koopman (2003):
y_t = Z*alpha_t + eps_t, ....................................... eps_ t ~ N(0,H)
apha_t+1 = T*alpha_t + R*eta_t, ............................. eta_t ~ N(0,Q)
I see in this function is computed Z, T, R, H, Q and alphahat and it returns as output alphahat, T and R among other elements.
I would like to modify DsgeSmoother.m in order to be able to get Z, T, R, H, Q and alphahat and I would like to include this in one structure, in M_. Could you please give me some advices to do this, maybe, what codes should I include?
By another side, I would like to know the order of variables included in apha_t, for example if I declare endogenous variables:
var x z x_obs z_obs
...
and after I declare observed variables:
varobs x_obs z_obs
Does It implies alpha will have this order = [x z x_obs z_obs ]?
And Does it implies y_t will have this order = [ x_obs z_obs ]?
Thanks a lot for your help
Aldo
I am seeing that DsgeSmoother.m follows notation of Durbin/Koopman (2003):
y_t = Z*alpha_t + eps_t, ....................................... eps_ t ~ N(0,H)
apha_t+1 = T*alpha_t + R*eta_t, ............................. eta_t ~ N(0,Q)
I see in this function is computed Z, T, R, H, Q and alphahat and it returns as output alphahat, T and R among other elements.
I would like to modify DsgeSmoother.m in order to be able to get Z, T, R, H, Q and alphahat and I would like to include this in one structure, in M_. Could you please give me some advices to do this, maybe, what codes should I include?
By another side, I would like to know the order of variables included in apha_t, for example if I declare endogenous variables:
var x z x_obs z_obs
...
and after I declare observed variables:
varobs x_obs z_obs
Does It implies alpha will have this order = [x z x_obs z_obs ]?
And Does it implies y_t will have this order = [ x_obs z_obs ]?
Thanks a lot for your help
Aldo