On 12/12/2011 02:05 AM, Allin Cottrell wrote:
On Sun, 11 Dec 2011, Sven Schreiber wrote:
> <excerpt>
> loop foreach i endolist
> # debug
> list debuglist = endolist.$i laglist
> series anymiss_i = missing(endolist.$i)
> series anymiss_l = missing(laglist)
> series anymiss = missing(debuglist)
>
> numofmiss_i = sum(anymiss_i)
> numofmiss_l = sum(anymiss_l)
> numofmiss = sum(anymiss)
>
> printf "Num of missings here lhs: %d\n", numofmiss_i
> printf "Num of missings here laglist: %d\n", numofmiss_i
> printf "Num of missings here: %d\n", numofmiss
> # end debug
> </excerpt>
Not sure how relevant it is, but there's an obvious bug in the
above, in that the value "numofmiss_i" is printed as the "Num of
missings" for both endolist and laglist.
Yeah I'm not getting enough sleep lately... Indeed it's relevant, the
missings seem to come from laglist, so I need to figure out why.
sorry and thanks,
sven