Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. (Dataset: gss. Variables: polviews, wtss.) The dataset gss contains polviews, a seven-category factor that measures political ideology-the extent to which individuals think of themselves

image text in transcribed
1. (Dataset: gss. Variables: polviews, wtss.) The dataset gss contains polviews, a seven-category factor that measures political ideology-the extent to which individuals "think of themselves as liberal or conservative." A. Run freq on gss$polviews, making sure to weight by gss$wtss. Add up the percentages of all liberals. The percentage of respondents who are either "extremely liberal," "liberal," or "slightly liberal" is (Fill in the blank) percent. B. The percentage of "moderates" is equal to (Fill in the blank) _ percent. C. Now add up the percentages of all conservatives. The percentage of respondents who are either "slightly conservative," "conservative," or "extremely conservative" is (Fill in the blank) percent. D. Use cut2 to create a new variable, gss$polview3, which combines the three liberal categories, keeps moderates in their own category, and combines the three conservative categories. Cut2 does not work on factors, so use the as.numeric function to create a numeric version of gss$polviews. Name the numeric version gss$polviews.n. Run freq on gss$polviews.n (again weighting by gss$wtss). On gss$polviews.n, liberals have the following three numeric codes: On gss$polviews.n, moderates have the following numeric code: On gss$polviews.n, conservatives have the following three numeric codes: E. Use cut2 to create a new variable, gss$polview3. Collapse gss$polviews.n's three liberal codes, keep moderates in their own category, and collapse the three conservative codes. Remember to apply cut2's "plus-1" rule. Run freq on gss$polview3, weighting by gss$wtss. Record the percentages in each category (Fill in the blanks): [1, 4) [5, 8) Before proceeding, make sure that the percentages you just recorded match the percentages (rounded to two decimals) you calculated in Parts A, B, and C. If they match, move on to Part F. If they do not match, check the cut2 expression that you typed. Make sure that you followed the plus-1 rule. Also, check to ensure that your freq runs in Parts A and E included gss$wtss. F. Supply gss$polview3 with the following level names: "Liberal," "Moderate," "Conservative." Use as.ordered to define gss$polview3 as an ordered factor. To check your work, run freq on gss$polview3. Run freq on gss$polview3 once more, this time wrapping it inside printC. Copy/paste the frequency distribution from Table.Output.html into your word processor. Print the table

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

Bridging Algebra, Geometry, And Topology

Authors: Denis Ibadula, Willem Veys

1st Edition

3319091867, 9783319091860

More Books

Students also viewed these Mathematics questions

Question

What does stickiest refer to in regard to social media

Answered: 1 week ago