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:

> tab1=matrix(c(69,58, 1320,553),nc=2) > chisq.test(tab1, correct=FALSE) Pearson's Chi-squared test data: tab1 X-squared = 14.6108, df = 1, p-value = 0.0001322 > chisq.test(tab1, correct=FALSE,simulate.p.value = TRUE,B=10000) Pearson's Chi-squared test with simulated p-value (based on 10000 replicates) data: tab1 X-squared = 14.6108, df = NA, p-value = 4e-04