Skip to content
Prev 312847 / 398506 Next

Chi-squared test when observed near expected

Read about Yate's continuity correction - your formula does not use it
and chisq.test does unless you suppress it:

  > chisq.test(trial)  
  
          Pearson's Chi-squared test with Yates' continuity correction

  data:  trial 
  X-squared = 0, df = 1, p-value = 1
  
  > chisq.test(trial, correct=FALSE)

          Pearson's Chi-squared test

  data:  trial 
  X-squared = 0.0556, df = 1, p-value = 0.8136


Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com