I've ran the Chi-Squared test for the following crosstable and got some weird results. Is there anyone who can help me work out the problem?
Category
AGE_Category Very Low Low Medium High Very High
(0,1] 9763 24097 7113 11431 2389
(1,2] 14053 17048 12438 10869 1930
(2,3] 2797 10106 12768 6751 1551
(3,4] 3 3771 4810 2494 1253
> chisq.test(AGE_Category,Category, simulate.p.value = TRUE,correct=FALSE)
Pearson's Chi-squared test with simulated p-value (based on 2000
replicates)
data: AGE_Category and Category
X-squared = 15520, df = NA, p-value = 0.0004998
> chisq.post.hoc(table(AGE_Category,Category), test="chisq.test")
Adjusted p-values used the fdr method.
comparison raw.p adj.p
1 (0,1] vs. (1,2] 0 0
2 (0,1] vs. (2,3] 0 0
3 (0,1] vs. (3,4] 0 0
4 (1,2] vs. (2,3] 0 0
5 (1,2] vs. (3,4] 0 0
6 (2,3] vs. (3,4] 0 0
chisq.post.hocfrom this package? Please clarify! Posts must include such essential information – kjetil b halvorsen Feb 09 '21 at 13:36