Assignment 4

Recoding

 

 

1. Recode the variable age in the GSS93subset dataset into three categories. Use the following coding.

           

            18-35

            36-45

            Older than 45

 

a) Run a frequency distribution on age

b) Do recode and add labels to new values on recoded variable

            c) Run a frequency distribution on the recoded variable

 

 

 

2. Use SPSS to recode the variable partyid in the GSS93subset dataset into three categories (Republican, Independent, Democrat). Run a frequency distribution on the recoded variable and attach the SPSS output. Make sure to follow the guidelines below

 

                        Combine “Strong Democrat”, “Not Str Democrat”, and “Ind, near Demo”

                        Combine “Independent”

                        Combine “Strong Republican”, “Not Str Republican”, and “Ind, near Rep”

                        Treat the rest as system-missing