Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This problem uses the same data regarding environmental policy versus economic policy that were presented in Lesson 2, Lecture 1, except the data are categorized

This problem uses the same data regarding environmental policy versus economic policy that were presented in Lesson 2, Lecture 1, except the data are categorized by education level or party identity. a) Read in GallupByEd.csv and GallupByPI.csv, creating two separate objects that store the data. Convert variables in each object to factors as needed. Think about the order in which the factors will appear on output and adjust if you think reordering will make things clearer. How many observations are there in each data set? b) Produce two two-way contingency tables, one for each data set, with education or party ID in rows and the response in the columns. c) What is the joint percentage of people who favor environmental policy and who identify as independents? d) What is the marginal distribution (as percentages) for education? [Hint: you will be reporting three percentages] e) Produce two more tables that show row conditional percentages instead of counts. What is the conditional distribution for Response for those participants who identify as republican? f) Pick one of the two data sets and create two bar graphs (your choice of versions) to explore the association between either education or party ID and Response. Make sure the axes are appropriately labeled. Summarize the information you glean from the bar graphs. g) For the data set you picked, does the row variable (either education or party ID) appear to be associated with the response. Explain. [Note: this is a qualitative answer based on data visualization.]

image text in transcribed
ABC Q Knit 7 Run - 5 - #### a ) 16 - {r Read in Gallup Data} 37 # Education data 38 GEd

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Mathematics questions

Question

discuss why people do or do not exercise,

Answered: 1 week ago