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. Identify one numeric variable in ANES 2016. Perform the hypothesis test, and interpret the results as appropriate.
2. Using the numeric variable in (1), identify a categorical variable as an independent variable. Recode into a binary if needed. Perform the hypothesis test using the t-test, and interpret the results as appropriate.
3. Using the numeric variable from (1), identify a different categorical variable as an independent variable. Perform the hypothesis test using the F-test, and interpret the results as appropriate.