The problem with your solution is that it requires knowing how many
missing values in a row you have before you create your lags. Thus with
out a lead, interleaving a data set upon itself, or a DoW loop you
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
Sent: Tuesday, June 29, 2004 3:44 PM
Subject: FW: Lag Question
What about increasing the lag using an array, or multiple lag functions?
LAG assumes LAG1 - one lag back. You could try z = lag(x) zz = lab2(x)
lag3(x) and test the missing values that way.