Hi,
two (almost) the same simple scripts:
<script>
nulldata 100
setobs 1 1 --time-series
set echo off
set messages off
series y = normal()
loop i=1..10 --quiet
y[$i] = NA
endloop
smpl --no-missing
printf "valid obs: %d\n", $nobs
</script>
<script>
nulldata 100
setobs 1 1 --time-series
set echo off
set messages off
series y = normal()
loop 1 --quiet
loop i=1..10 --quiet
y[$i] = NA
endloop
smpl --no-missing
printf "valid obs: %d\n", $nobs
endloop
</script>
The only difference is the "loop 1 --quiet" statement. Results of the
first script is 90 (as we expect), but the second is 100.
Is this bug or just limitation of "smpl" command in loops?
Regards,
Marcin
--
Marcin Błażejowski
http://www.wrzosy.nsb.pl/~marcin/
GG# 203127