Extracting Trend Using Kalman Filter

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

lovelyday
Posts: 1
Joined: Thu Mar 13, 2014 9:08 am

Extracting Trend Using Kalman Filter

Postby lovelyday » Thu Mar 13, 2014 9:21 am

Hi everyone. Please help me to extract the trend of a series using kalman filter. I already have the estimation output but I need the trend of the series. What will I do? I just know the point-and-click feature of the Eviews so can you give me instructions on what to do. Thank you.

By the way, I already tried searching the forum with the words "Kalman Filter" and I saw all the post about it but none really answered this question. So yeah. I badly need it. Thank you.

NicolasR
Posts: 90
Joined: Mon Nov 04, 2013 6:22 pm
Location: Here

Re: Extracting Trend Using Kalman Filter

Postby NicolasR » Fri Mar 14, 2014 9:39 am

Hi,

It depends if you want the smoothed trend or the filtered trend (or the other options that EViews provides) , but you could program it like this for one state variable, you must provide more output names if you have more state variables:

sv1.makestate(t=pred) name_1
sv1.makestate(t=predse) name_2
sv1.makestate(t=filt) name_3
sv1.makestate(t=filtse) name_4
sv1.makestate(t=smooth) name_5
sv1.makestate(t=smoothse) name_6
(sv1 is the name of the state space object )

And for the signal variables:

ss1.makesignals(t=smooth)

Regards.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests