Use RStudio to compute and plot the difference in means. Fitness score means should be represented on the y-axis and the breakfast protein level should be represented on the x-axis. (b)  Judging by the plot created in part (a), does there appear to be a significant main effect of diet? Of gender? (c) Use RStudio to compute and print SSA, SSB, and SSAxB.

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

A research study was conducted to examine the impact of eating a high protein
breakfast on adolescents’ performance during a physical education physical fit-
ness test. Half of the subjects received a high protein breakfast and half were
given a low protein breakfast. All of the adolescents, both male and female, were
given a fitness test with high scores representing better performance.
Load the data into a data
frame named FitnessData. The fitness scores will be contained in the Score vari-
able of the data frame (FitnessData$Score). The gender (“Male” or “Female”)
of each subject is contained in the Gender variable (FitnessData$Gender). The
protein level (“High” or “Low”) of each subject’s breakfast is contained in the
Protein variable (FitnessData$Protein).
(a)  Use RStudio to compute and plot the difference in means. Fitness score means should be
represented on the y-axis and the breakfast protein level should be represented on the x-axis.
(b)  Judging by the plot created in part (a), does there appear to be a significant main effect of
diet? Of gender?
(c) Use RStudio to compute and print SSA, SSB, and SSAxB.

Gender
Male High
Male
High
Male
High
Male
High
Male
High
Male
Low
Male
Low
Male
Low
Male
Low
Male Low
Female High
Female High
Female High
Female High
Female High
Female Low
Female Low
Female Low
Female Low
Female Low
Protein
Score
10
7
9
6
8
10
5
4
7
4
5
5
st
4
6
3
2
3
st
4
10
5
1
2
Transcribed Image Text:Gender Male High Male High Male High Male High Male High Male Low Male Low Male Low Male Low Male Low Female High Female High Female High Female High Female High Female Low Female Low Female Low Female Low Female Low Protein Score 10 7 9 6 8 10 5 4 7 4 5 5 st 4 6 3 2 3 st 4 10 5 1 2
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Similar questions
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