Skip to main content

Select case feature in SPSS


Suppose you have done a research on both male and female. And now, during data analysis phase, you want to analyze the data only for females. In that case, you can use a feature called "Select case" in SPSS.


Steps: 
1. Identify the variable to use select case feature. For example, I have chosen the variable "gender"
2. Note that the variable type should be numeric to use select case feature as shown in picture below. Even though gender is a categorical variable, for convenience in data analysis in SPSS, variable gender is categorized as "numeric" and the value labels are 1=male and 2=female.

3.Note down the category within the variable for which you want to use "select case" feature. Here I chose "Female" so that I can generate the outputs only for females.


4. Check if the desired category has sufficient frequency. Here, I have 216 female cases which represents 45.6% of the observation. So we have all the criteria fulfilled to use select case feature.
5. Now go to Data menu and click on select case.
6. The following dialog box appears.
7. Choose the option "If condition is satisfied" and click on "if" to get the following dialog box.
8. After that move the Gender to the box by double clicking or using the arrow key and use the displayed keypad or your keyboard to use the condition "Gender = 2". The number 2 was selected because it represented female in this dataset (see step 2 and 3 above for details)
9. Click continue and you get the following dialog box.
10. Click OK and you will see the following changes in your Dataset. Only the female is selected.
11. Now when you run any analysis, it will give output for only the females. Lets try one to calculate frequency of any variable in our dataset. Go to analyze, descriptive statistics and click on frequencies.
12. Here I wish to calculate the frequency by educational status and employment. Drag the desired variables to the box and click ok
13. Click on ok, and you see the output showing frequency distribution only among the females. Remember that in step 4 above, we saw that we have 216 females in our dataset.
14. So, any analysis you want to run, it will give output for females only. Lets try for measures of central tendency. Here, I have tried to calculate the descriptive statistics of current salary by going to "analyze", "descriptive statistics" and then "descriptives".
15. lets try for crosstabulations. Go to analyze, descriptive statistics and crosstabs.
16. here, I have tried to find the crosstabulation between educational level and employment. Drag one variable in row and another in column. Click ok.
17. You will see the following output showing crosstabulation between education and employment among females.
18. So using the select case feature restricts the analysis to only the selected category.
After you are done with the analysis, you can reset your "select case" feature to proceed to the analysis among both male and females. for that, go to Data, click on select case and click on "Reset" and click on ok.
19. When you run the analysis now, you will see that the output will show for entire observation i.e. 474 cases (in step 4 you can see that 474 is the total cases including both male and females). See the crosstab below and compare with step 17.
So, select case feature is particularly useful when you have objective of running analysis for selected category within the variable. You can use the operators ">", "<", ">=", "<=" etc. to customize your select case feature to a desired range or to select more than one category too.

Hope you enjoyed the tutorial and please comment below for any query or feedback. See you in the next tutorial!

Comments

  1. Thank u very much. I was searching the same condition to apply for the analysis of my data. I learned it. Thank u once again.

    ReplyDelete

Post a Comment

Popular posts from this blog

Median test between 2 or more independent groups in SPSS

Multiple response analysis using SPSS

Creating date variable and calculating between two dates in SPSS