spssforum.com from users, for users

SPSSforum.com is the largest free SPSS help resource worldwide.
On this SPSS forum you are sure to get an answer to your question!
Join the forum and let other SPSS users help you.

Join the SPSS users Group on LinkedIn
Join the SPSS Users Group
on LinkedIn
 
SPSSforum.com is a forum for SPSS users. Ask any question you like about SPSS or statistics.

It is currently Wed Sep 08, 2010 5:51 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: ranking variables
PostPosted: Sun Feb 07, 2010 12:22 am 
Offline

Joined: Sat Feb 06, 2010 11:55 pm
Posts: 1
Hi, I would like to rank 10 variables for each case separately, with the new variablenames to be 1 for the highest, 2 for the second highest. How do i do it?
Data looks something like this:
Cases -- A B C D E F G H I J ---- 1 2 3 4 5 6 7 8 9 10
1------- 2 6 4 3 1 8 7 9 10 5 ---- 10 9 8 7 6 5 4 3 2 1
2------- 7 5 4 8 10 3 2 1 6 9 ---- 10 9 8 7 6 5 4 3 2 1
3


Top
 Profile  
 



 Post subject: Re: ranking variables
PostPosted: Thu Feb 11, 2010 6:33 pm 
Offline

Joined: Thu Feb 11, 2010 1:44 pm
Posts: 3
You could use something like this:


FLIP
VARIABLES=Cases A B C D E F G H I J .

SORT CASES BY
var001 (D) .

FLIP
VARIABLES=var001.


Obviously, this will solve just the first case of the file. You'll need to do a loop to the others. And you'll need to rename the new variables.


Top
 Profile  
 



Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: MSN [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Template made by DEVPPL

This site is in no way connected with SPSS Inc. or any affiliate of SPPS Inc. The SPSS logo and products are owned by and copyrighted by SPSS Inc. The views expressed in the messages posted on this site are those of persons writing those comments and not necessarily those of the SPSSforum.com. SPSSforum.com does not vouch for the accuracy or truthfulness of any posted statement or opinion. The SPSSforum.com has, however, refrained from posting any item containing any statement known to be inaccurate, false or baseless.