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. Formulate a sociological question and find two categorical variables in the ANES 2016 to test it. Identify the question and the variables:
2. Recode both variables into binary vectors and compute a crosstabulation with odds ratio. Interpret the results. Show your R code in your answer.
3. Compute the probability or the odds of identifying as a Republican, Independent, or Democrat by gender. Interpret the results. Show your R code in your answer.
4. Compute the probability or the odds of frequent attendance at religious services by race. Interpret the results. Show your R code in your answer.
5. What can you say sociologically on the basis of the tables you produced?