Skip to content

Instantly share code, notes, and snippets.

@aaroncharlton
Created April 15, 2015 13:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaroncharlton/72bc1b5a52b483a5eaab to your computer and use it in GitHub Desktop.
Save aaroncharlton/72bc1b5a52b483a5eaab to your computer and use it in GitHub Desktop.
# chi-squared test
chisq.test(tbl) # Yate's continuity correction is the default
chisq.test(tbl, correct=FALSE) # no Yate's continuity correction
fisher.test(tbl) # fisher's exact test for count data
chisq.test(tbl, simulate.p.value=T, B=999) # Markov chain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment