P-value correction: Difference between revisions
m
→{{header|R}}
mNo edit summary |
m (→{{header|R}}) |
||
Line 2,817:
=={{header|R}}==
The '''p.adjust''' function is built-in, see [https://stat.ethz.ch/R-manual/R-devel/library/stats/html/p.adjust.html R manual].
<lang R>p <- c(4.533744e-01, 7.296024e-01, 9.936026e-02, 9.079658e-02, 1.801962e-01,
8.752257e-01, 2.922222e-01, 9.115421e-01, 4.355806e-01, 5.324867e-01,
4.926798e-01, 5.802978e-01, 3.485442e-01, 7.883130e-01, 2.729308e-01,
Line 2,908 ⟶ 2,847:
p.adjust(p, method = 'hommel')
writeLines("Hommel\n")</lang>
{{out}}
|