I have a statistics question
A health researcher conducted a study to assess the impact of consuming a high protein breakfast on the performance of adolescents during a fitness test. 100 subjects were randomly allocated to receive a high protein breakfast; another third of the subjects received a medium protein breakfast while the other third consumed a low protein breakfast. Information on gender was also collected to examine if this had an effect on the fitness test results. A higher score on the fitness test indicates a higher level of fitness. The data collected is available in protein.csv.
The researcher has a number of interests regarding this research. They would like to know if:
I have a data set and I need to do it in Rstudio. What would the process be to solve this question including some of the statistics code I might need to use.
Here i have create the counter example
> result=c(2,5,7,3,4,7,8,3)
>
breakfast=c("low","High","High","Medium","Medium","High","High","low")
>
fittness=c("low","High","High","low","low","High","High","low")
> anova=aov(result~breakfast*fittness)
> summary(anova)
>TukeyHSD(anova)
The necessary codes for your analysis are
>data=read.csv(file.choose())
>attach(data)
> anova=aov(result~breakfast*fittness) # make sure the
variable names are same as i have given or change the variable name
in the csv so the code will run otherwise change the code according
to your data.
> summary(anova)
>TukeyHSD(anova)
( If any difficulty please comment so i can help you in depth, to acheive your analysis, Hope you will like this help , Thank you)
Get Answers For Free
Most questions answered within 1 hours.