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