Modify the Code (Expressions and Variables)
The following code explores wages and correlates using the National Longitudinal Surveys, Women sample, 1988. We will explore relationship in the entire data and then modify the code to explore differences in these relationships by union membership and college graduate.
sysuse nlsw88.dta, clear
sum wage hours
tab married race, row
bys married race: sum wage hours
Copy this code into your assignment and then add additional lines of code to calculate the following for union/non-union members and college grads/non-college grads:
- Mean wage and hours (use
bysandsum)- For union members
- For non-union members
- For college grads
- For non-college grads
- The percentage of Blacks who are (use
tab)- Union member
- Non-union members
- College grads
- Non-college gradss
- Mean wage and hours of
- Union members who are college grads
- Union members who are non-college grads
- Non-union members who are college grads
- Non-union members who are non-college grads