powered by
Calculate the Bonferroni threshold for n iid tests that results in an overall p-value of p.val. The tests can be distributed as Normal, t or F.
Threshold.Bonferroni(p.val, n, type = c("Normal", "t", "F"), df1 = NULL, df2 = NULL)
Returns the Bonferroni threshold.
The required overall p-value.
The number of tests.
The distribution of the tests. One of "Normal", "t" or "F"
The degrees of freedom of the t-distribution or the first degrees of freedom parameter for the F distribution.
The second degrees of freedom parameter for the F distribution.
Pierre Lafaye De Micheaux and J. L. Marchini.
Note: This function is directly copied from "AnalyzeFMRI".
Threshold.Bonferroni(0.05, 1000) Threshold.Bonferroni(0.05, 1000, type = c("t"), df1 = 20) Threshold.Bonferroni(0.05, 1000, type = c("F"), df1 = 3, df2 = 100)
Run the code above in your browser using DataLab