Created
November 30, 2012 17:56
-
-
Save jtleek/4177366 to your computer and use it in GitHub Desktop.
Bonferroni Correcting Autism P-values
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pvaluesPain = c(0.02, 0.06, 0.75, 0.38, 0.3, 0.07, 0.22, 0.27) | |
adjustedPvaluesPain = p.adjust(pvaluesPain,method="bonferroni") | |
adjustedPvaluesPain | |
sum(adjustedPvaluesPain < 0.05) | |
pvaluesNoPain = c(0.82, 0.98, 0.65, 0.39, 0.88, 0.95, 0.29, 0.64, 0.81) | |
adjustedPvaluesNoPain = p.adjust(pvaluesNoPain,method="bonferroni") | |
adjustedPvaluesNoPain | |
sum(adjustedPvaluesNoPain < 0.05) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment