10.00 points Use MegaStat, MINITAB, or another software package to perfom Tukey\
ID: 3273342 • Letter: 1
Question
10.00 points Use MegaStat, MINITAB, or another software package to perfom Tukey's test for significant pairwise One moming, the length of sime spent in the examination rooms is necorded for each pa ent seen cick.here for the Excel Data Fic a) Cakculate the mean for each group and the Tukey test statistic Tale for each pair Provide the critical values for both a - 0.05 and a 0.01. put the mean valess within the input boxes of the first eow and inpat boxes of the irst column. Imput a in the appropriate boxes in the table, Round all answers to two decimal places. Post hoo analysis: Physician 3 Physician 2 0.01 twalues and choose the correct answer Physicians 2 and 3 differ Physicians 2 and 4 differ Physicians 1 and 3 der (c) The T maintains the desired overall probability of Type I error True O FalseExplanation / Answer
Below is the Rcode for above question
study1=data.frame(
Sabor =
c(
36,33,16,28,
22,38,32,35,
29,35,31,32,
32,34,24,28,
28,40,34,33,
32,32,26,34,
19,NA,27,43,
NA,NA,28,NA)
,
Tipo = factor(rep(c("A", "B", "C","D"), 8)),
Provador = factor(rep(1:8, rep(4, 8))))
tapply(study1$Sabor, study1$Tipo, mean(x,na.rm=TRUE))
ajuste <- lm(study1$Sabor ~ study1$Tipo + study1$Provador)
summary(ajuste)
anova(ajuste)
a1 <- aov(study1$Sabor ~ study1$Tipo + study1$Provador)
posthoc <- TukeyHSD(x=a1, 'study1$Tipo', conf.level=0.95)
Output:
According to test
Physicians 2 and 3 are differ at 5% level of significance.
Physician 3 Physician 1 Physician 4 Physician 2 27.25 28.285714 33.285714 35.333333 Physician 3 27.25 Physician 1 28.28571 -1.035714 Physician 4 33.28571 6.035714 5 Physician 2 35.33333 -8.083333 7.047619 -2.047619Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.