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 (November 2003, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 24 Nov 2003 18:59:55 +0000
Reply-To:     John Whittington <John.W@MEDISCIENCE.CO.UK>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         John Whittington <John.W@MEDISCIENCE.CO.UK>
Subject:      Re: how to use lag
Comments: To: Richard Read Allen <>
In-Reply-To:  <>
Content-Type: text/plain; charset="us-ascii"; format=flowed

At 12:08 24/11/03 -0700, Richard Read Allen wrote:

>John, Venky and Helen, >I realized that my solution would not cross id boundaries when I submitted it

I presume you mean that it WOULD 'cross id boundaries' (which is undesired functionality for Helen).

>.... but was mostly just trying to inform Helen not to use the lag in a >conditional statement unless absolutely necessary and show her one >possible solution that did work for her problem as it was stated. I left >it to her to fill in the details. I should not have done that. My apologies.

Richard, having misread your code and made a false accusation about it, I'm hardly in a position to be critical or to expect anyone else to apologise - and, in any event, you approach was actually better than mine. Because I was thinking in generalisations, I unnecessarily introduced the temporary' variable lag_y, whereas, as you've illustrated, in Helen's case it is sufficient to RETAIN variable x itself.

Kind Regards


---------------------------------------------------------------- Dr John Whittington, Voice: +44 (0) 1296 730225 Mediscience Services Fax: +44 (0) 1296 738893 Twyford Manor, Twyford, E-mail: Buckingham MK18 4EL, UK ----------------------------------------------------------------

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