Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 R 中测试相等的组大小?
chisq.test(rep(1:3, 100))产生 300 个自由度,而我希望以 2 个自由度执行此测试。
chisq.test(rep(1:3, 100))
chisq.test期望列表数据:
chisq.test
> chisq.test(table(rep(1:3, 100))) Chi-squared test for given probabilities data: table(rep(1:3, 100)) X-squared = 0, df = 2, p-value = 1