Hi all,

I'm trying to delete several series with a loop like this:

<gretl>
loop i=1 ..100
    if sum(ok(series$i)) < 20
        delete series$i
    endif
endloop
</gretl>

Let's say I have  series1, series2, ...,series100. I want to delete all series with less than 20 observations. But, Gretl doesn't allow this kind of massive deletion. Any ideas on how can I check over several series and delete those whic don't fit the criteria?

Many thanks in advance

--
Filipe Rodrigues da Costa