Hi, I've got the following problem: I'd like to delete all series-objects, which contain for every observation the value 0.
Here an example:
series_object_1 contains the following values:
1986 1
1987 2
1988 0
1989 0
1990 0
series_object_2 contains the following values:
1986 0
1987 0
1988 0
1989 0
1990 0
So, I'd like to tell EViews to delete series_object_2 as it contains for every observation the value 0.
Is there any possiblity to do this? I already tried different ways, but these didn't work.
For example I tried to use the if-condition like this:
!i = 1 to 2
if series_Object_{!i} = 0
then delete series_object_{!i}
!i = !i
endif
Actually this possibility didn't work. It would be great, if you could help me concerning this problem.
Thanks a lot in advance!
Delete series
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Delete series
Code: Select all
for !i = 1 to 2
if @mean(series_Object_{!i}) and @stdev(series_object_{!i}) = 0 then
delete series_object_{!i}
endif
next
Who is online
Users browsing this forum: No registered users and 2 guests
