Answered step by step
Verified Expert Solution
Question
1 Approved Answer
s) 11) Read in GallupByEd.csv and GallupByPI.csv, creating two separate obj ects that store the data. Convert variables in each object to factors as needed.
s) 11) Read in GallupByEd.csv and GallupByPI.csv, creating two separate obj ects that store the data. Convert variables in each object to factors as needed. Reordere'renarne factors. [The code for this is provided in the template, so nothing to do but look at the code to understand how factors were reorderedfrelabeled. This might come in handy for your nal group project, where we will not provide the code]. How many observations are there in each data set? Produce two twoway contingency tables, one for each data set, with education or party 1D in rows and the response in the columns. You can just leave the tables as they display in the R output. What is the joint percentage of people who favor an environmental rst policy and are college graduates? What are the marginal percentages for education? [I-Iint: you will be reporting three percentages]. Explain to a layperson what is meant by marginal percentages. Produce two more tables, one for each data set, that show row conditional percentages instead of counts. What are the conditional percentages for Response for those participants who identify as republicans? Pick each data set and create a bar graph (your choice of version) to explore the association between either education and Response, and PartyID and Response. Make sure the axes are appropriately labeled. For each data set, does the row variable {education or party ID) appear to be associated with the response, or does the row variable and Response appear to be dependent. Explain. [Note: this is a qualitative answer based only on data visualization]
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started