Threshold.Bonferroni {AnalyzeFMRI}R Documentation

Calculates Bonferroni Threshold

Description

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.

Usage

Threshold.Bonferroni(p.val, n, type = c("Normal", "t", "F"), df1 = NULL, df2 = NULL)

Arguments

p.val The required overall p-value.
n The number of tests.
type The distribution of the tests. One of "Normal", "t" or "F"
df1 The degrees of freedom of the t-distribution or the first degrees of freedom parameter for the F distribution.
df2 The second degrees of freedom parameter for the F distribution.

Value

Returns the Bonferroni threshold.

Examples

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)


[Package AnalyzeFMRI version 1.1-11 Index]