Can I extend a series without using forcast function?

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

Liu
Posts: 90
Joined: Tue Jun 08, 2010 6:22 am

Can I extend a series without using forcast function?

Postby Liu » Wed Aug 11, 2010 12:02 pm

Hi everyone. I have a series called s1 in my workfile and I want to extend this series for another 365 more observations. I wrote a program below.

scalar obs=@obs(s1)
series s2
for !i= 2 to 365+obs
s2(1)=s1(1)
s2(!i)=s2(!i-1)+w*s2(!i-1)
next



However, I received an error message saying that s2(4813) can not be defined (there are 4812 observations in s1).
Why can't I define a series with extra observations ? Thank you in advance for your help.

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

Can I extend a series without using forcast function?

Postby EViews Gareth » Wed Aug 11, 2010 12:29 pm

You need to make your workfile the correct size first. You can use pagestruct to resize it


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests