uncorrelated residuals in a state-space model
Posted: Thu Jan 03, 2013 9:24 am
Hello,
I have a question in state-space modeling: I want the residuals in two signal equations to be uncorrelated.
For example, using demo.wf1,
c=1
sspace ss
ss.append @ename e1
ss.append @ename e2
ss.append @signal d(GDP)=st1*d(GDP(-1))+C(2)*d(m1(-1))+C(3) + e1
ss.append @signal d(M1)=C(4)*d(pr)+C(5)*d(GDP(-1))+C(6)*d(M1(-1))+C(7) +e2
ss.append @state st1=st1(-1)
ss.append @evar var(e1)=exp(c(8))
ss.append @evar var(e2)=exp(c(9))
ss.append @evar cov(e1,e2)=0
ss.ml(m=9999)
show ss
But if I remove the line ss.append @evar cov(e1,e2)=0, I get the same results as the above program which does not remove the line.
I am not sure if this is a bug in the state-space object.
I have a question in state-space modeling: I want the residuals in two signal equations to be uncorrelated.
For example, using demo.wf1,
c=1
sspace ss
ss.append @ename e1
ss.append @ename e2
ss.append @signal d(GDP)=st1*d(GDP(-1))+C(2)*d(m1(-1))+C(3) + e1
ss.append @signal d(M1)=C(4)*d(pr)+C(5)*d(GDP(-1))+C(6)*d(M1(-1))+C(7) +e2
ss.append @state st1=st1(-1)
ss.append @evar var(e1)=exp(c(8))
ss.append @evar var(e2)=exp(c(9))
ss.append @evar cov(e1,e2)=0
ss.ml(m=9999)
show ss
But if I remove the line ss.append @evar cov(e1,e2)=0, I get the same results as the above program which does not remove the line.
I am not sure if this is a bug in the state-space object.