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 1999)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 26 Feb 1999 14:23:38 GMT
Reply-To:   jpwinter@UMSL.EDU
Sender:   "SPSSX(r) Discussion" <SPSSX-L@UGA.CC.UGA.EDU>
From:   jpwinter@UMSL.EDU
Organization:   University of Missouri - St. Louis
Subject:   Re: Help with syntax

Brute force answer:

Create 456 variables = 0. Write 456 IF statements:

if STOP1 = 'a' and STOP2 = 'b' AB = 1. if STOP2 = 'a' and STOP3 = 'b' AB = 1. etc...

Improvements? I sure wouldn't want to type this out by hand, or have or edit line by line -- too much room for error.

On Thu, 25 Feb 1999 21:23:13 +1000, "Peter Newcombe" <newc@psy.uq.edu.au> wrote:

: Dear group : Could someone help with this syntax task: We have 10 variables where each : represents a tourist stop that people have taken on trips throughout their : travels (eg Stop 1 where they stayed the 1st night, stop 2 where they stayed : the 2nd night and so on). For each of these variables there are 30 possible : destinations (these same 30 are value labels for each of the stops). We : would like to gain data relevant to the number of times people travelled : from point A to Point B (regardless of whether it may have been from Stop 1 : to 2 or Stop 9 to 10) as well as times (ie frequency of trips) travelled : from Point B to Point A. Further this needs to be repeated for all possible : combinations within the 30 destinations (= 465 combinations). Is there some : syntax command that might abbreviate this task (perhaps LOOP or VECTOR?) : : : -- : Dr Peter Newcombe : School of Psychology : University of Queensland : Australia 4072 : newc@psy.uq.edu.au : :


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