如何解决错误-卡方近似值可能不正确
我正在尝试对列联表进行卡方检验
Satisfied More Or Less Not At All Sat
Lower Class 299 787 1876
Working Class 4594 10935 7660
Middle Class 8913 10260 3679
Upper Class 989 420 227
No Class 0 0 0
我使用了代码chisq.test(ct)
,并收到了以下错误消息
Chi-squared approximation may be incorrect
Pearson's Chi-squared test
data: ct
X-squared = NaN,df = 8,p-value = NA
当我查找错误时,我发现了答案,要求刺激p值chisq.test(ct,simulate.p.value=TRUE)
我仍然遇到错误
cannot compute simulated p-value with zero marginals Chi-squared approximation may be incorrect
Pearson's Chi-squared test
data: ct
X-squared = NaN,p-value = NA
我想知道我要去哪里哪里以及是否可以对数据进行其他测试。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。