kalman filter

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

ked
Posts: 2
Joined: Thu Apr 28, 2016 3:17 am

kalman filter

Postby ked » Thu Apr 28, 2016 6:56 am

please help!
i'm trying to estimate this model based on Harvey and Jaeger (1993) but it doesn't run!!

@signal log(y_cocoa)=trend+cycle+[var=exp(c(2))]
@state trend=trend(-1)+beta+[var=exp(c(3))]
@state beta=beta(-1)+[var=exp(c(4))]
@state cycle=rho*@cos(lamda)*cycle(-1)+rho*@sin(lamda)*cycle_star(-1)+[var=exp(c(5))]
@state cycle_star=rho*@cos(lamda)*cycle_star(-1)-rho*@sin(lamda)*cycle(-1)+[var=exp(c(6))]

you can find the error msg enclosed.

i'm a beginner and i don't know if i've forgotten some details. i need your advice please.
Attachments
Capture.JPG
erro msg
Capture.JPG (20.92 KiB) Viewed 4349 times

trubador
Did you use forum search?
Posts: 1520
Joined: Thu Nov 20, 2008 12:04 pm

Re: kalman filter

Postby trubador » Fri Apr 29, 2016 2:50 am

Make sure the workfile contains rho and lamda objects. If they are coefficients to be estimated with the model, then define them accordingly (i.e. as c(7) and c(8)).
And note that state equation for trend cannot have another contemporaneous state variable (i.e. beta).

ked
Posts: 2
Joined: Thu Apr 28, 2016 3:17 am

Re: kalman filter

Postby ked » Sat Apr 30, 2016 1:57 pm

It runs now. you're perfectly right. Thank you very much for your help.


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 1 guest