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 (September 1998)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Sat, 19 Sep 1998 17:53:04 -0500
Reply-To:     lloschky@s.psych.uiuc.edu
Sender:       "SPSSX(r) Discussion" <SPSSX-L@UGA.CC.UGA.EDU>
From:         Lester Loschky <lloschky@S.PSYCH.UIUC.EDU>
Organization: Psychology
Subject:      Lag vs. Lead functions...
Content-Type: multipart/alternative;

Hi,

I am doing an analysis in which I want to use the LEAD function. I want to copy the value of the chosen variable from the following line. However, since I have several observations per trial, I must be careful not to cross trial boundaries with the LEAD function (otherwise, I will copy values from the following trial into the current trial).

I have created similar variables (working in the opposite time direction) using the LAG function before, and have a script that solves the trial boundary problem:

> DO IF ((lag (subject) = subject) AND (lag (trial) = trial)). > COMPUTE fixdrlag = lag(fixdur). > END IF. > EXECUTE. > I have tried unsuccessfully, however, to use the LEAD function within this command structure. That is, simply switching the term LEAD for LAG results in error messages, where there were none before when used with the LAG function.

I am not quite sure what could be the cause of the problem since both functions seem to require the same parameters and arguments in their syntax.

Any help on this problem would be extremely appreciated.

Thanks in advance!

Lester Loschky

Human Perception and Performance Group Beckman Institute for Advanced Science and Technology 405 North Mathews Urbana, IL 61801 E-mail: loschky@s.psych.uiuc.edu Phone/voice-mail: 217-333-0970


[text/html]


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