Skip to content

Instantly share code, notes, and snippets.

@NyaGarcia
Created March 18, 2020 16:53
Show Gist options
  • Save NyaGarcia/45e310d5ddc76f03df1f1672c3a8f54d to your computer and use it in GitHub Desktop.
Save NyaGarcia/45e310d5ddc76f03df1f1672c3a8f54d to your computer and use it in GitHub Desktop.
Performing the Fisher exact test for independence between gears and cylinders
> fisher.test(mtcars$gear, mtcars$cyl)
Fisher's Exact Test for Count Data
data: mtcars$gear and mtcars$cyl
p-value = 8.26e-05
alternative hypothesis: two.sided
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment