This preview shows pages 1–5. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: Chapter 5: Tests for Trends and Association 6. Contingency Tables with Ordered Categories • alternatives to the χ 2 statistic when there is an ordering among the cate gories of one or both factors in a contingency table • Singly Ordered Tables – the categories of one of the factors is ordered – numerical labels with increasing ordering – Wilcoxon ranksum test with ties when the unordered factor has two categories Not Somewhat Very satisfied satisfied satisfied Physicianprescribed 2 2 Selfadministered 1 2 H : no difference between the two methods of pain relief H a : the selfadministered dose will be more satisfactory Level of Satisfaction with Pain Relief Physicianprescribed 1,1,2,2 Selfadministered 2,3,3 Permutation Chisquare test: Number of the random permutations: R= 5000 Chisquare of original data: chisquare= 4.277778 estimated pvalue for Chisquare test= 0.3132 1 MannWhitneyWilcoxon test: Exact Wilcoxon rank sum test data: pp and sa W = 1, pvalue = 0.08571 alternative hypothesis: true mu is less than 0 Permutation Test with Rank Sum Rank sum for trt: 11 pvalue: 0.08571429 JonckheereTerpstra Permutation Test Number of all possible permutations: 35 JT_obs: 10 pvalue= 0.086 2 – KruskalWallis test with ties when the unordered factor has more than two categories ∗ Ratings of the chief Academic Officer at Hypothetical State Uni versity Poor Fair Good Very Good Excellent (1) (2) (3) (4) (5) College A 6 4 3 2 College B 2 2 3 2 1 College C 1 2 3 4 2 H : The ratings of the chief academic officer of College A, B and C are the same Pearsons’ Chisquare Test with approximation: Pearson’s Chisquared test data: data.mat Xsquared = 7.0231, df = 8, pvalue = 0.5341 Warning message: In chisq.test(data.mat) : Chisquared approximation may be incorrect College A 1,1,1,1,1,1,2,2,2,2,3,3,3,4,4 College B 1,1,2,2,3,3,3,4,4,5 College C 1,2,2,3,3,3,4,4,4,4,5,5 KruskalWallis Test with approximation: KruskalWallis rank sum test data: College by College.ind KruskalWallis chisquared = 6.4283, df = 2, pvalue = 0.04019 3 • Double Ordered Tables – the categories of both factors are ordered – JonckheereTerpstra with ties ∗ Level of Insect Damage for Each of Three Treatments Response/Treatment...
View
Full
Document
This note was uploaded on 07/22/2011 for the course STA 4502 taught by Professor Staff during the Spring '08 term at University of Florida.
 Spring '08
 Staff

Click to edit the document details