y1_Threshold.Bonferroni: Calculates Bonferroni Threshold

Threshold.BonferroniR 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.

Details

Note: This function is directly copied from "AnalyzeFMRI".

Value

Returns the Bonferroni threshold.

Author(s)

Pierre Lafaye De Micheaux and J. L. Marchini.

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)


MixfMRI documentation built on Sept. 8, 2023, 5:06 p.m.