IBM Support

Ranking variables within cases in SPSS

Troubleshooting


Problem

I have a series of numeric variables v1 to vN. I would like to create another series of N variables with values ranging from 1 to N which reflect the relative rank of v1 to vN within cases. If, for example, v1 has the third highest value among v1 to vN, I would like the first rank variable to hold a 3, and so on. SPSS appears to have a MIN and a MAX function to identify the lowest and highest values across variables and within cases, but I need to identify more than the extremes. Are there any means of doing this in SPSS?

[{"Product":{"code":"SSLVMB","label":"IBM SPSS Statistics"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"Not Applicable","Edition":"","Line of Business":{"code":"LOB76","label":"Data Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Historical Number

17100

Document Information

Modified date:
16 April 2020

UID

swg21476161