|
Brian,
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
wouldn't know.
Toby Dunn
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
Brian Shilling
Sent: Tuesday, June 29, 2004 3:44 PM
To: SAS-L@LISTSERV.UGA.EDU
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)
zzz =
lag3(x) and test the missing values that way.
|