Warning message upon using chisq.test()

Hi,

I am getting a warning message when performing a Chi-square test.

Can someone help explain why?

Best,
Charlie

I believe the warning is calling out the fact that you have fairly small cell sizes.

Okay, so nothing with how the test has been called, but more to be careful to trust the statistic?

Okay, so nothing with how the test has been called, but more to be careful to trust the statistic?

yes, exactly that

That is great, thank you.

You are effectively violating the rule of thumb regarding a chi squared test:

  • none of the classes should have an expected value of 0
  • not more then 20% of your classes should have <5

You have 18 different entry positions, but 6 of them (= 33%) have 5 or less as an entry. You should probably consider using an exact Fisher-Test in this case, to avoid violating the rule of thumb for chi squared tests (the computations are very expensive in this case, but your entries are rather small so it might be the better option here).

Hi FactOREO,

Thank you very much for you comment. I will consider the Fisher-test instead.