I need to delete all series of an imported file where there are no observations, I have the code below that does not work. Coul you please help?
Code: Select all
group g *
for !i=1 to g.@count
if @obs(g(!i)) then delete g(!i)
next !i
Thanks,
Javier
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt
Code: Select all
group g *
for !i=1 to g.@count
if @obs(g(!i)) then delete g(!i)
next !i
Code: Select all
group g *
for !i=1 to g.@count
if @obs(g(!i))=0 then delete g(!i)
next !i
Code: Select all
group g*
for !i=1 to g.@count
!firstcount = @errorcount
!temp = @max(g(!i))
!secondcount = @errorcount
if !firstcount<!secondcount then
%name = g.@seriesname(!i)
delete {%name}
endif
next
Code: Select all
group g*
for !i=1 to g.@count
!firstcount = @errorcount
%name = g.@seriesname(!i)
!temp = @max({%name})
!secondcount = @errorcount
if !firstcount<!secondcount then
delete {%name}
endif
next
Users browsing this forum: No registered users and 34 guests