Answered step by step
Verified Expert Solution
Question
1 Approved Answer
It's regarding R studio question You will use theIthaca.csvdata set for this assignment. These data were collected by students in a research methods course at
It's regarding R studio question
You will use theIthaca.csvdata set for this assignment. These data were collected by students in a research methods course at Cornell University for teaching purposes.
A data frame with 465 observations on the following variables1:
- tvinat: Attention to international TV news (0 = "Little attention," 10 = "Very close attention")
- tvnaat: Attention to national TV news (0 = "Little attention," 10 = "Very close attention")
- tvhardat: Attention to TV news about politics and economy (0 = "Little attention," 10 = "Very close attention")
- tvsoftat: Attention to soft news on TV (0 = "Little attention," 10 = "Very close attention")
- tvcrat: Attention to TV crime dramas (0 = "Little attention," 10 = "Very close attention")
- tvcomat: Attention to TV comedies (0 = "Little attention," 10 = "Very close attention")
- educ: Highest year of school completed
- age: Age of respondent
- marit: Marital status (1 = "single," 2 = "married," 3 = "divorced/separated," 4 = "widowed," 5 = "other," 9 = "Don't know/NA")
- sex: 0 = "female," 1 = "male"
- Conduct data management on these variables:tvnaat,tvhardat,tvsoftat,sex,marit. As always, check frequency before and after you recode a variable. Make sure you create new variables instead of changing the original ones directly.
a. Recode values of99asNAintvnaat,tvhardat, andtvsoftat.
b. Recodesexandmaritinto character variables with textual categories.
- Bothsexandmaritare numerical variables now. Are there values that you need to turn intoNAs?
- The new variables should have meaningful textual categories (e.g., "male" and "female" for the variable based onsex).
- Find the mean attention to national TV news for males and females.
a. What is the mean attention to national TV news for women?
b. What is the mean attention to national TV news for men?
Please tell me how to do that.
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