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.
Can I extend a series without using forcast function?
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
-
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?
You need to make your workfile the correct size first. You can use pagestruct to resize it
Who is online
Users browsing this forum: No registered users and 2 guests
