Correlation errors in state space models
Posted: Fri Nov 02, 2018 2:28 am
Dear all, I'm having some problems trying to write a sspace object.
I would like to model the contemporaneous correlation between the errors of the state and signal equations. I read from eviews manual that "to allow for correlation in the contemporaneous states and signals in time t, you will need to specify erros in the lagged states, and define correlation between the lagged state errors and the errors in the signal equation." I understand in principle what it means but I find difficult to implement it. let me give you an example.
I would like to model a correlation between e1 and the innovation in the state equation lagged one period, that is e3. but i know is not correct to define two times the same object (namely sv2).
would you please expalain how to do it properly?
@SIGNAL gdpyoy=c(50)*gdpyoy(-1)+c(51)*gdpyoy(-2)+(1-c(50)-c(51))*sv1+[ename = e1]
@state sv1 = sv1(-1)+ [ename = e2]
@state sv2 = sv1(-1)
@state sv2 = sv2(-1)+[ename = e3]
Thanks a lot
S.
I would like to model the contemporaneous correlation between the errors of the state and signal equations. I read from eviews manual that "to allow for correlation in the contemporaneous states and signals in time t, you will need to specify erros in the lagged states, and define correlation between the lagged state errors and the errors in the signal equation." I understand in principle what it means but I find difficult to implement it. let me give you an example.
I would like to model a correlation between e1 and the innovation in the state equation lagged one period, that is e3. but i know is not correct to define two times the same object (namely sv2).
would you please expalain how to do it properly?
@SIGNAL gdpyoy=c(50)*gdpyoy(-1)+c(51)*gdpyoy(-2)+(1-c(50)-c(51))*sv1+[ename = e1]
@state sv1 = sv1(-1)+ [ename = e2]
@state sv2 = sv1(-1)
@state sv2 = sv2(-1)+[ename = e3]
Thanks a lot
S.