Below is my script for some problems I am doing in RStudio. How do I code to get the statistical data that shows how the male tv hours differ to the female tv hours?

MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
icon
Related questions
Question
Below is my script for some problems I am doing in RStudio. How do I code to get the statistical data that shows how the
male tv hours differ to the female tv hours?
Chapter 2 R Lab.R X
StudentSurvey.(1) x
Source on SaveE
T # 3- Ine Exercise nours are skewea Tert
8 xtabs (~Year, Student Survey. (1))
9 # 1- The highest concentration of students are Sophomores
10 table(Year)/length (Year)
II # 2- The relative frequency for seniors was 0.1% (rounded)
11
Student Survey. (1) STV
12
12 TV
13
14
23
15
16
29
18
19
20
21
22
23
21
24:1
hist (TV)
→→Run
boxplot (TV)
# 6- Based on the box plot there is not a smallest outlier, but there are large outliers
# The outliers for hours spent watching TV are any values above 20 hours
Survey - Student Survey. (1) #Renaming
xtabs (~Sex, Survey)
install.packages ("lattice")
library("lattice")
bwplot (TV
Sex, Survey)
# 7- Men on average watch more TV
# 8- Men have more variability in hours watching TV
(Top Level) +
Source
R Script =
Transcribed Image Text:Below is my script for some problems I am doing in RStudio. How do I code to get the statistical data that shows how the male tv hours differ to the female tv hours? Chapter 2 R Lab.R X StudentSurvey.(1) x Source on SaveE T # 3- Ine Exercise nours are skewea Tert 8 xtabs (~Year, Student Survey. (1)) 9 # 1- The highest concentration of students are Sophomores 10 table(Year)/length (Year) II # 2- The relative frequency for seniors was 0.1% (rounded) 11 Student Survey. (1) STV 12 12 TV 13 14 23 15 16 29 18 19 20 21 22 23 21 24:1 hist (TV) →→Run boxplot (TV) # 6- Based on the box plot there is not a smallest outlier, but there are large outliers # The outliers for hours spent watching TV are any values above 20 hours Survey - Student Survey. (1) #Renaming xtabs (~Sex, Survey) install.packages ("lattice") library("lattice") bwplot (TV Sex, Survey) # 7- Men on average watch more TV # 8- Men have more variability in hours watching TV (Top Level) + Source R Script =
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Recommended textbooks for you
MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman