Question

In: Statistics and Probability

Diagnosis Category affective disorders cognitive disorder drug-related conditions 7 12 8 6 8 10 5 9...

Diagnosis Category

affective disorders cognitive disorder drug-related conditions
7 12 8
6 8 10
5 9 12
6 11 10

Conduct Tukey's HSD post hoc test to determine where there is a difference in the three groups.

5% level of significance

Solutions

Expert Solution

Conduct one way ANOVA and then post Hoc test Tukey kramer

in R studio:

Rcode:

df1 =read.table(header = TRUE, text ="
category pats
1 7
1 6
1 5
1 6
2 12
2 8
2 9
2 11
3 8
3 10
3 12
3 10
"
)
df1
df1$category <- ordered(df1$category ,
levels = c("1", "2", "3"))

summary(df1)
res.aov <- aov(pats ~ category , data = df1)
summary(res.aov)
TukeyHSD(res.aov)

Output:

res.aov <- aov(pats ~ category , data = df1)
> summary(res.aov)
Df Sum Sq Mean Sq F value Pr(>F)   
category 2 42.67 21.333 9.6 0.00586 **
Residuals 9 20.00 2.222   
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
> TukeyHSD(res.aov)
Tukey multiple comparisons of means
95% family-wise confidence level

Fit: aov(formula = pats ~ category, data = df1)

$category
diff lwr upr p adj
2-1 4 1.056968 6.943032 0.0106731
3-1 4 1.056968 6.943032 0.0106731
3-2 0 -2.943032 2.943032 1.0000000

Intrepretation:

ANOVA one way

Ho:

Ha:atleast one of the

F=9.6

p=0.00586

p<0.05

Reject Ho

Accept Ha

Conclusion:
There is suffcient statistical evdidence at 5% level of significance to conclude that atleast one of the group means are different.

Conduct Tukey kramer to know which group means are different

$category
diff lwr upr p adj
2-1 4 1.056968 6.943032 0.0106731
3-1 4 1.056968 6.943032 0.0106731
3-2 0 -2.943032 2.943032 1.0000000

P>0.05 means that group means are not different

p<0.05,means that group means are different

For

2-1 p=0.0106731,p<0.05

affective disorders cognitive disorder

are different

3-1 ,p= 0.0106731,p<0.05

drug-related conditions and affective disorders group means are different


Related Solutions

3, 7, 8, 5, 6, 4, 9, 10, 7, 8, 6, 5 Using the previous question...
3, 7, 8, 5, 6, 4, 9, 10, 7, 8, 6, 5 Using the previous question 's scores, If three points were added to every score in this distribution, what would be the new mean? If three points were added to every score in this distribution, what would be the new standard deviation. Remember, you have already calculated population standard deviation in a previous problem. This problem requires two answers.
Table: x: 6, 2, 15, 9, 12, 5, 8 y: 8, 9, 4, 7, 6, 9,...
Table: x: 6, 2, 15, 9, 12, 5, 8 y: 8, 9, 4, 7, 6, 9, 8 1) Make the scatter diagram. 2) Find the equation of the regression line using the formulas given in class. They must appear the intermediate steps of substitutions. Round the answers to three decimal places. 3) Find the correlation coefficient using the formulas given in class. Steps should appear intermediates of substitutions. Round the answer to three decimal places. 4) Find the value predicted...
Shoe Size 12 6 11 13 8 9 8 8 9 9 11 5 10 8...
Shoe Size 12 6 11 13 8 9 8 8 9 9 11 5 10 8 7 7 11 9 9 9 12 8 8 8 12 9 11 8 11 8 13 5 9 8 11 We need to find the confidence interval for the SHOE SIZE variable. To do this, we need to find the mean and standard deviation with the Week 1 spreadsheet. Then we can the Week 5 spreadsheet to find the confidence interval. This does...
Use the sample space (5, 6, 7, 8, 9, 10, 11, 12, 13, 14) to find...
Use the sample space (5, 6, 7, 8, 9, 10, 11, 12, 13, 14) to find the probability for a random selected a) P(integer) b) P(less than 10 | less than 13) c) P(greater than 8 | less than 11) d) P(greater than 7 | greater 12)
3 6 4 8 1 10 2 9 11 12 15 22 3 6 7 5...
3 6 4 8 1 10 2 9 11 12 15 22 3 6 7 5 8 1 12 14 Each column represents a different treatment given to sick rats. Each cell is a different rat. Use statistical analysis and use post hoc testing using contrasts to find the best treatment. Treatment 1: vitamins Treatment 2: prescription pills Treatment 3: brain surgery Treatment 4: shock therapy Treatment 5: dietary changes
Lawyer Nurse Teacher Control 8 6 9 8 5 7 6 7 7 6 8 6...
Lawyer Nurse Teacher Control 8 6 9 8 5 7 6 7 7 6 8 6 7 8 8 7 4 9 7 9 A researcher is interested in whether the likeability of a crying woman is affected by the viewer’s knowledge of the woman’s occupation. Twenty participants were shown a video of a woman crying and were asked to rate her likeability on a scale from 1 (not very likable) to 10 (highly likable). Prior to viewing the video,...
5.) For the data set 2 4 4 5 7 8 9 10 12 12 13...
5.) For the data set 2 4 4 5 7 8 9 10 12 12 13 13 16 16 16 16 17 19 19 20 23 24 24 24 25 26 26 27 28 28 29 31 32 34 34 36 37 38 42 44 45 46 47 47 48 50 52 53 53 54 55 56 56 57 58 (a) Find the 80th percentile. The 80t percentile is =    (a) Find the 42nd percentile. The 42nd percentile is...
x 2 8 5 9 4 3 9 6 7 8 y 3 6 5 7...
x 2 8 5 9 4 3 9 6 7 8 y 3 6 5 7 9 7 4 6 9 9 -5.48x + 0.17 5.48x + 0.17 -0.17x + 5.48 0.17x + 5.48
Given the following data: x 2 8 5 12 9 y 6 11 7 14 10...
Given the following data: x 2 8 5 12 9 y 6 11 7 14 10 a) draw/graph a scatter plot. b) by hand, find the correlation coefficient r. c) by hand, find b0 and b1. d) write the regression equation.
Match No. 1 2 3 4 5 6 7 8 9 10 11 12 13 14...
Match No. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Player A 8 42 56 68 91 123 12 46 57 137 5 80 14 10 19 Player B 38 44 46 59 57 61 48 42 51 39 58 41 55 45 68 1. For the given data set representing the runs scored by two players in last 15 matches, conduct the following analysis: i. Which average you will use to summarize...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT