LoginSignup
7

More than 5 years have passed since last update.

R 統計 二標本の検定 カイ二乗検定

Posted at

chi1.png

summary関数で
chi2.png

行列を作る
columnとrowに名前をつけると見た目がいいかな
chi3.png

chi4.png

このケースではFisherのexact検定がよい

chisq.test(m3)$expected .....  期待度数の表示
chisq.test(m3)$observed .....  観測度数の表示

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7