Sspace estimation
Posted: Thu Jul 31, 2014 8:34 am
Dear eviews moderators,
my name is Yacine and that's my first post on the forum. I read it regularly (btw it is really helpful), but sorry if my question has already been asked. Please note that I am using Eviews 8.
I'm trying to use the sspace object to estimate a hidden variable (potential GDP) out of a system of equations, but I'm having some issues with it.
Here is the system
@signal pi = pi(-1)+c(1)*pi(-2)+c(2)*(u(-1)-upot(-1))+[var = exp(c(3))]
@signal u=upot+ c(11)*(u(-1)-upot(-1))+c(12)*(u(-2)-upot(-2))+[var = exp(c(13))]
@signal y =ypot+c(4)*(u(-1)-upot(-1))+c(5)*(u(-2)-upot(-2)) + [var = exp(c(6))]
@state ypot = beta+ypot(-1)+[var = exp(c(7))]
@state upot = gsi+upot(-1)+[var = exp(c(8))]
@state beta = beta(-1)+[var = exp(c(9))]
@state gsi = gsi(-1)+[var = exp(c(10))]
param c(1) 1 c(2) 1 c(3) 1 c(4) 1 c(5) 1 c(6) 1 c(7) 1 c(8) 1 c(9) 1 c(10) 1 c(11) 1 c(12) 1 c(13) 1
(The priors are not yet my problem)
y is the log of GDP. ypot is potential GDP. pi is inflation u is the jobless rate. beta and gsi are random walks allowing my potential to move.
My understanding is that I cannot have lagged state variables in a measurement equation, that would be why I keep getting error messages when hitting "Estimate".
Is there a way to get around that problem (and all the others that you see)? I started working with kalman filters only recently, so sorry if my question sounds stupid or if there is a big problem in my system!
Sincerely,
Yacine
my name is Yacine and that's my first post on the forum. I read it regularly (btw it is really helpful), but sorry if my question has already been asked. Please note that I am using Eviews 8.
I'm trying to use the sspace object to estimate a hidden variable (potential GDP) out of a system of equations, but I'm having some issues with it.
Here is the system
@signal pi = pi(-1)+c(1)*pi(-2)+c(2)*(u(-1)-upot(-1))+[var = exp(c(3))]
@signal u=upot+ c(11)*(u(-1)-upot(-1))+c(12)*(u(-2)-upot(-2))+[var = exp(c(13))]
@signal y =ypot+c(4)*(u(-1)-upot(-1))+c(5)*(u(-2)-upot(-2)) + [var = exp(c(6))]
@state ypot = beta+ypot(-1)+[var = exp(c(7))]
@state upot = gsi+upot(-1)+[var = exp(c(8))]
@state beta = beta(-1)+[var = exp(c(9))]
@state gsi = gsi(-1)+[var = exp(c(10))]
param c(1) 1 c(2) 1 c(3) 1 c(4) 1 c(5) 1 c(6) 1 c(7) 1 c(8) 1 c(9) 1 c(10) 1 c(11) 1 c(12) 1 c(13) 1
(The priors are not yet my problem)
y is the log of GDP. ypot is potential GDP. pi is inflation u is the jobless rate. beta and gsi are random walks allowing my potential to move.
My understanding is that I cannot have lagged state variables in a measurement equation, that would be why I keep getting error messages when hitting "Estimate".
Is there a way to get around that problem (and all the others that you see)? I started working with kalman filters only recently, so sorry if my question sounds stupid or if there is a big problem in my system!
Sincerely,
Yacine