LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (June 2004, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 29 Jun 2004 15:46:02 -0500
Reply-To:   "Dunn, Toby" <tdunn@TEA.STATE.TX.US>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Dunn, Toby" <tdunn@TEA.STATE.TX.US>
Subject:   Re: FW: Lag Question
Comments:   To: Brian Shilling <bshilling@A-CI.COM>
Content-Type:   text/plain; charset="us-ascii"

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.


Back to: Top of message | Previous page | Main SAS-L page