Skip to main content

Data & Intelligence

Ranking your Cases: IBM SPSS Statistics

Ranking in SPSS Statistics

Ranking

A ranking is a relationship between a set of items such that, for any two items, the first is either “ranked higher than”, “ranked lower than” or “ranked equal to” the second. – Wikipedia

 

Ranking in SPSS Statistics

IBM SPSS Statistics ranks cases in your data pond by automatically defining new variables to contain ranks, normal and Savage scores, and percentile values for your selected numeric variables.

New variable names and descriptive variable labels are automatically generated for you by SPSS, based on the original variable name and the selected measure(s). The ranking process also produces a summary table listing the original variables, the new variables, and the variable labels.

On the road to Ranking Cases

Ranking Cases is SPSSTo rank cases in SPSS you choose

Transform > Rank Cases…

from the menu.

 From there the Rank Cases dialog allows you to:

  • Select one or more variables to rank (you can rank only numeric variables)
  • Rank cases in ascending or descending order
  • Organize rankings into subgroups by selecting one or more grouping variables for the “By list”.

Rank Cases: Types

IBM SPSS allows you to select multiple ranking methods and a separate ranking variable is created for each method you choose. Ranking methods include:

  • Rank – Simple rank. The value of the new variable equals its rank.
  • Savage score -. The new variable contains Savage scores based on an exponential distribution.
  • Fractional rank. The value of the new variable equals rank divided by the sum of the weights of the non-missing cases.
  • Fractional rank as percent. Each rank is divided by the number of cases with valid values and multiplied by 100.
  • Sum of case weights. The value of the new variable equals the sum of case weights. The new variable is a constant for all cases in the same group.
  • Ntiles. Ranks are based on percentile groups, with each group containing approximately the same number of cases. For example, 4 Ntiles would assign a rank of 1 to cases below the 25th percentile, 2 to cases between the 25th and 50th percentile, 3 to cases between the 50th and 75th percentile, and 4 to cases above the 75th percentile.
  • Proportion estimates. Estimates of the cumulative proportion of the distribution corresponding to a particular rank.
  • Normal scores. The z scores corresponding to the estimated cumulative proportion.

 

Total Preorder

A total preorder is defined as a ranking where no pair of items is incomparable. In realistic case ranking it is not uncommon for you to encounter cases that “cannot be ranked” or, in simple terms, you have a “tie”. SPSS recognizes case ties and gives you the ability to determine what method to use to resolve the tie.

Rank Cases: Ties

From the Rank Cases dialog, you can click on Ties…  The Rank Cases: Ties dialog box controls the method for assigning rankings to cases with the same value on the original variable.  You can select 1 of 4 methods:

  • Mean
  • Low
  • High
  • Sequential ranks to unique values

Example

Going back to a previous blog post which included a data pond of male and female respondents indicating a perception of married life, I expanded the possible response to make things a little more interesting. Now, a respondent can choose from 1 of 10 values:

Happy, Sad, Bored, Excited, Neutral, Angry, Blissful, Exhausted, Youthful and Lost.

I’ve also added to the data to represent these new cases. Now I am ready to perform a ranking. I’ll keep it simple, so from the Rank Cases dialog, I’ll select the variable “Happy” (which if you remember, holds the respondents response value) as the only (ranking) variable:

Data Intelligence - The Future of Big Data
The Future of Big Data

With some guidance, you can craft a data platform that is right for your organization’s needs and gets the most return from your data capital.

Get the Guide

Rank Cases Dialog SPSS

Now I’ll click OK. The output pane in the viewer shows my summary table:

Output pane SPSS

More interestingly, my data viewer shows the new ranking variable that SPSS added (RHappy):

Data Viewer SPSS

 

Finally, I can use the Data View to see the actual assigned ranking values:

Data View SPSS

 

 

 

 

 

 

 

 

 

 

 

I hope you find this post helpful and would enjoy any feedback you may have.

Later!

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Jim Miller

Mr. Miller is an IBM certified and accomplished Senior Project Leader and Application/System Architect-Developer with over 30 years of extensive applications and system design and development experience. His current role is National FPM Practice Leader. His experience includes BI, Web architecture & design, systems analysis, GUI design and testing, Database modeling and systems analysis, design, and development of Client/Server, Web and Mainframe applications and systems utilizing: Applix TM1 (including TM1 rules, TI, TM1Web and Planning Manager), dynaSight - ArcPlan, ASP, DHTML, XML, IIS, MS Visual Basic and VBA, Visual Studio, PERL, Websuite, MS SQL Server, ORACLE, SYBASE SQL Server, etc. His Responsibilities have included all aspects of Windows and SQL solution development and design including: analysis; GUI (and Web site) design; data modeling; table, screen/form and script development; SQL (and remote stored procedures and triggers) development and testing; test preparation and management and training of programming staff. Other experience includes development of ETL infrastructure such as data transfer automation between mainframe (DB2, Lawson, Great Plains, etc.) systems and client/server SQL server and Web based applications and integration of enterprise applications and data sources. In addition, Mr. Miller has acted as Internet Applications Development Manager responsible for the design, development, QA and delivery of multiple Web Sites including online trading applications, warehouse process control and scheduling systems and administrative and control applications. Mr. Miller also was responsible for the design, development and administration of a Web based financial reporting system for a 450 million dollar organization, reporting directly to the CFO and his executive team. Mr. Miller has also been responsible for managing and directing multiple resources in various management roles including project and team leader, lead developer and applications development director. Specialties Include: Cognos/TM1 Design and Development, Cognos Planning, IBM SPSS and Modeler, OLAP, Visual Basic, SQL Server, Forecasting and Planning; International Application Development, Business Intelligence, Project Development. IBM Certified Developer - Cognos TM1 (perfect score 100% on exam) IBM Certified Business Analyst - Cognos TM1

More from this Author

Follow Us
TwitterLinkedinFacebookYoutubeInstagram