Threshold.Bonferroni: Calculates Bonferroni Threshold

Description Usage Arguments Value Examples

View source: R/threshold.R

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

1
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

1
2
3
4
5
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)

AnalyzeFMRI documentation built on Oct. 5, 2021, 5:06 p.m.