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 (February 2009)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 11 Feb 2009 14:53:42 +1100
Reply-To:     Gary Oliver <G.Oliver@econ.usyd.edu.au>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Gary Oliver <G.Oliver@econ.usyd.edu.au>
Subject:      SPSS v16 not v17 university upgrade
In-Reply-To:  A<499197D4.9010801@DrKendall.org>
Content-Type: multipart/alternative;

Hi All and SPSS Here at University of Sydney, I have just received a message saying we are being upgraded from v15 to v16. Please can anyone explain to me why if v17 is out SPSS would not be providing codes for the less troublesome v17? Public info to the list or private information to my e-mail would be gratefully received Warm regards/gary ________________________________

From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU] On Behalf Of Art Kendall Sent: Wednesday, February 11, 2009 2:06 AM To: SPSSX-L@LISTSERV.UGA.EDU Subject: Re: help using lag function

see if syntax like that below is what you want. Note that it will be very dependent on case order. data list list/ID (f2) class(f1) period (f2) want (f1). begin data 12 5 43 0 12 5 44 0 12 4 45 1 12 4 45 0 34 2 38 0 34 3 39 1 34 3 40 0 34 4 41 1 34 4 42 0 end data. compute changed eq 0. do if id eq lag(id). compute changed = class ne lag(class). end if. formats changed (f1). LIST . Art Kendall Social Research Consultants David Wright wrote:

I need to identify the period when a change occurs in the status of a respondent. Listed below is a sample data file v1 = class (1 thru 6) v2 = period (1 thru 72) ID v1 v2 12 5 43 12 5 44 12 4 45 12 4 45 34 2 38 34 3 39 34 3 40 34 4 41 34 4 42 I'd like to create a flag to show when a change occurred from the previous record-- v3. ID v1 v2 v3 12 5 43 0 12 5 44 0 12 4 45 1 12 4 45 0 34 2 38 0 34 3 39 1 34 3 40 0 34 4 41 1 34 4 42 0 Thanks, David ===================== To manage your subscription to SPSSX-L, send a message to LISTSERV@LISTSERV.UGA.EDU (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD


[text/html]


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