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.
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.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images