Exponential Smoothing Capturing the Parameters

For questions regarding programming in the EViews programming language.

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

annynstar
Posts: 2
Joined: Tue Aug 17, 2010 9:30 am

Exponential Smoothing Capturing the Parameters

Postby annynstar » Wed Aug 18, 2010 1:49 am

Hi all,
I have been tasked with using Eviews to exponentially smooth and forecast for some data we have. It is for many series and will be done at regular intervals. My manager wants me to estimate 5 different smoothing methods for each data series. That I have no problem with, I have attached the program I am using. But he wants eviews to estimate the parameters and then he wants those in a table. He also wants the RMSE and the SSE. He actually doens't even need the smoothed series. I have tried freezing, using the @ command and anything else I can think of but I cannot make it give me the parameters. The workfile is attached with quarterly data and country specific time series.
I am using Eviews 7. Any help would be much appreciated.
Thanks, Shannon
Attachments
smooth.prg
This is just a program that estimates smoothed series.
(149 Bytes) Downloaded 275 times
smoothing.WF1
Workfile with data in quarterly format. USA is the example series I have been working on.
(16.79 KiB) Downloaded 260 times

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13603
Joined: Tue Sep 16, 2008 5:38 pm

Re: Exponential Smoothing Capturing the Parameters

Postby EViews Gareth » Wed Aug 18, 2010 8:06 am

Rather than using the smooth command, you should use the smooth proc:

Code: Select all

usa.smooth(s) usa_simp
You can then freeze that to get a table you can then extract the values from:

Code: Select all

freeze(mytab) usa.smooth(s) usa_simp scalar alpha = @val(mytab(8,5))

annynstar
Posts: 2
Joined: Tue Aug 17, 2010 9:30 am

Re: Exponential Smoothing Capturing the Parameters

Postby annynstar » Wed Aug 18, 2010 8:38 am

Thanks so much for your help. I was looking in the Eviews command guide and didn't realize I could use it as a process.
I haven't used eviews in quite a while and I really need to brush up!
Cheers :D


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests