Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

For this problem, write a report and put your R code in the Appendix (similar to

ID: 3206886 • Letter: F

Question

For this problem, write a report and put your R code in the Appendix (similar to what you do in the homeworks). Make sure to write appropriate comments in your R code. Consider the same problem. Read the data from the data tile "cuckoo data". Treat this as a Completely Randomized Design (one-way lay out) and analyze the data. Print the ANOVA table Plot the residuals against the factor levels. It should be same as the following plot (note the color of the points and labeling of the x-axis). Do the side-by-side Boxplot of the residuals against the factor levels. It should be same as the following plot.

Explanation / Answer

Solution :

the R code is as following

df1=read.table("cuckoo.data.txt", header=TRUE)
r = c(t(as.matrix(df1))) # response data
f = c("Item1", "Item2", "Item3") # treatment levels
k = # number of treatment levels
n = # observations per treatment
tm = gl(k, 1, n*k, factor(f)) # matching treatments
av = aov(r ~ tm)
summary(av)
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote