*Compose your answers in a Word/Pages/Google document (or the equivalent kind of file) and email prior to the due date or print and bring to class on the due date. Test your code in R before submitting your lab, so that you know it is correct. Be careful to write the code exactly, or copy the code from the R console into your word processor to ensure accuracy.*

1. Select two numeric variables in ANES 2016. Compute the correlation coefficient. Interpret the results, as appropriate.

2. Identify a third numeric variable that you think might mediate the relationship between the variables in (1). Compute the partial correlation coefficient. Interpret the results, as appropriate.

3. Using the same two variables in (1), compute the bivariate linear regression model. Interpret the results, as appropriate.

4. What is the advantage of using regression instead of correlation to investigate the relationship between these two variables?

- Log in to post comments