Challenge 1 (Expressions and Variables)
Sticking with the National Longitudinal Surveys, Women sample, 1988, we are going to graph some of the relationships we just explored numerically.
Using only code that you write in .do files and the help twoway command, create the following graphs:
- Create a scatterplot in which
tenureis on the x-axis andwageis on the y-axis. Add a line of best fit to the scatterplot usinglfit. Change the color of that line tomaroon. Label the x-axis asTenure (years)and the y-axis asWages (hourly). Then create a legend that is two columns and place the legend below the graph (in the 6 o’clock position). Save the graph as a.png.