# SOC222H5 Chapter Notes - Chapter 2: Recode, Radio Button, Frequency Distribution

## Document Summary

One may wish to collapse a few categories of a variable into one for appropriateness of analysis. For example: within the marital status variable, one might combine the "married" and "separated" categories to form "legally married" and combine "divorced" with. "recode" is the spss function that allows a researcher to recategorize a variable to suit the needs of the analysis. There is also a "compute" function that allows a user to both preform mathematical operations on variable data and combine data from multiple distinct variables within the file. For an example, we will use gss data set. Let"s dichotomize age from a ratio variable, presenting the respondent"s actual age at the time of interview, into just two categories with a cut point of 50 years of age. One may wish to collapse a few categories of a variable into might combine the "married" and "separated" categories both preform mathematical operations on variable data and.