InfluentialPoints.com
Biology, images, analysis, design...
Use/Abuse Principles How To Related
"It has long been an axiom of mine that the little things are infinitely the most important" (Sherlock Holmes)

Search this site

 

 

chi square test - using R

Pearson's Chi-squared Test


Gives something like this:

Pearson's Chi-squared test with Yates' continuity correction data: tab1 X-squared = 2.275, df = 1, p-value = 0.1315 Warning message: Chi-squared approximation may be incorrect in: chisq.test(tab1, correct = TRUE) > chisq.test(tab1, correct=TRUE,simulate.p.value = TRUE,B=10000) Pearson's Chi-squared test with simulated p-value (based on 10000 replicates) data: tab1 X-squared = 5.3846, df = NA, p-value = 0.07419