State Space Modeling Advice
Posted: Mon Jul 16, 2012 6:19 am
Hi,
I'm trying to run this Kalman Filter Estimation based upon a Pindyck paper regarding the long-run evolution of energy prices over time (1998).
(this attachment is just a shot of the equation in the document)
Signal Equation:
P_t = Constant + Constant*P_t-1 + Phi1,t + time*Phi2,t +e_t
State Equations:
Phi1,t = Constant*Phi1,t-1 + e_t
Phi1,t = Constant*Phi1,t-1 + e_t
I have never used a state space object such that the signal multiplies the unobservable state by time. Therefore, I'm unsure about how do I write the time*Phi2,t part of the equation. Does anyone have any idea about how to accomplish this? As of now my equation looks like this:
@ename e1
@ename e2
@ename e3
@evar var(e1)=exp(C(1))
@evar var(e2)=exp(C(2))
@evar var(e3)=exp(C(3))
@signal logp= C(6)*logp(-1) +SV1+SV2+C(7)+e3
@state SV1 = C(4)*SV1(-1)+e1
@state SV2 = C(5)*SV2(-1)+e2
I know my signal equation is wrong since I need to figure out how to multiply SV2*time. If anyone has any idea that would be greatly appreciated (I only recently moved from constructing state space models in Eviews from MatLab and/or Stata).
Thanks!
Omar
I'm trying to run this Kalman Filter Estimation based upon a Pindyck paper regarding the long-run evolution of energy prices over time (1998).
(this attachment is just a shot of the equation in the document)
Signal Equation:
P_t = Constant + Constant*P_t-1 + Phi1,t + time*Phi2,t +e_t
State Equations:
Phi1,t = Constant*Phi1,t-1 + e_t
Phi1,t = Constant*Phi1,t-1 + e_t
I have never used a state space object such that the signal multiplies the unobservable state by time. Therefore, I'm unsure about how do I write the time*Phi2,t part of the equation. Does anyone have any idea about how to accomplish this? As of now my equation looks like this:
@ename e1
@ename e2
@ename e3
@evar var(e1)=exp(C(1))
@evar var(e2)=exp(C(2))
@evar var(e3)=exp(C(3))
@signal logp= C(6)*logp(-1) +SV1+SV2+C(7)+e3
@state SV1 = C(4)*SV1(-1)+e1
@state SV2 = C(5)*SV2(-1)+e2
I know my signal equation is wrong since I need to figure out how to multiply SV2*time. If anyone has any idea that would be greatly appreciated (I only recently moved from constructing state space models in Eviews from MatLab and/or Stata).
Thanks!
Omar