LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (March 2002)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 11 Mar 2002 18:03:09 -0500
Reply-To:     Raynald Levesque <rlevesque@videotron.ca>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Raynald Levesque <rlevesque@videotron.ca>
Subject:      Re: any possible combination of cases position in a datafile
In-Reply-To:  <4.3.0.20020311175356.00b5a930@popmail.libero.it>
Content-Type: text/plain; charset="us-ascii"

Hi

The syntax for which I gave the URL this morning is taking care of that.

Regards

Raynald Levesque rlevesque@videotron.ca Visit my SPSS Pages http://pages.infinit.net/rlevesqu/index.htm

-----Original Message----- From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU]On Behalf Of Arnaldo Ferrari Nasi Sent: March 11, 2002 11:54 AM To: SPSSX-L@LISTSERV.UGA.EDU Subject: any possible combination of cases position in a datafile

Yes, it works! Thanks a lot, Art.

I ask you if there is a rapid way to eliminate cases with two or more variables with the same value. Ie I do not want these cases

1 3 3 1 3 1 3 2 5 1

I want only this kind 3 2 1 4 5

Bye. Arnaldo

>* generate 5**5=3125 cases representing every possible ordering of 5 values. >new file. >input program. >loop i =1 to 5. >loop j = 1 to 5. >loop k = 1 to 5. >loop l = 1 to 5. >loop m = 1 to 5. >leave i j k l m. >end case. >end loop. >end loop. >end loop. >end loop. >end loop. >end file. >end input program. >execute. > > > Dear Spssers, > I have a data file with 5 cases, sorted in ascending order. > > > > casenum > > 1 > > 2 > > 3 > > 4 > > 5 > > > > I would have a number of others datafiles (or variables) with any possible > > combination of the position of these cases. > > > > ie > > > > casenum1 casenum2 casenum3 casenum4 ... > > 2 3 2 1 > > 3 4 1 3 > > 4 5 3 2 > > 5 1 4 4 > > 1 2 5 5


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