**Mini-Assignment 7 **

**Directions**

- Re-familiarize yourself with the CPS CODEBOOK from Mini-Assigment 6.
- Import/load the CPS data set.
- Suppose you want to test whether number of years experience is significantly associated with wages earned per hour. During your last assignment, you found a sample correlation coefficient of r=0.09 and found that it was significantly different from 0. This indicated that there was a significant relationship between experience and wages.
- Construct a plot to determine whether gender appears to moderate the relationship between experience and wages earned per hour. Answer Questions 1 and 2 below.
- Run a test to determine whether experience is associated with wages for males and females separately. Answer Question 3 below.
- Now suppose you want to test whether gender is significantly associated with job satisfaction. Implement the appropriate statistical test and answer Question 4 below.
- Determine whether race moderates the relationship between gender and job satisfaction. Answer Questions 5 and 6 below.

**Questions**

* Question 1*: Which of the following graphs accurately depicts the relationship between wages earned per hour and experience broken down by gender?

* Question 2*: Based on the graph, does gender appear to moderate the relationship between wages earned per hour and experience?

* Question 3*: Based on the statistical tests, does gender seem to moderate the relationship between experience and wages earned per hour? Why?

* Question 4*: What is the test statistic, p-value, and appropriate conclusion to answer the question “Is gender significantly associated with job satisfaction?”

* Question 5:* Based on the graph (provided), does race moderate the relationship between gender and job satisfaction? Why?

* Question 6:* Based on the statistical tests, does race moderate the relationship between gender and job satisfaction? Why?

Submit your answers here.