Package 'fuzzyFDR'

Title: Exact Calculation of Fuzzy Decision Rules for Multiple Testing
Description: Exact calculation of fuzzy decision rules for multiple testing. Choose to control FDR (false discovery rate) using the Benjamini and Hochberg method, or FWER (family wise error rate) using the Bonferroni method. Kulinsakaya and Lewin (2007). Compatibility updates by Renova.
Authors: Alex Lewin [aut, cre]
Maintainer: Alex Lewin <[email protected]>
License: GPL
Version: 1.0.9001
Built: 2026-11-15 20:38:30 UTC
Source: https://github.com/renova-r/fuzzyFDR

Help Index


Exact calculation of fuzzy decision rules for multiple testing

Description

Exact calculation of fuzzy decision rules for multiple testing. Choose to control FDR (false discovery rate) using the Benjamini and Hochberg method, or FWER (family wise error rate) using the Bonferroni method. Kulinsakaya and Lewin (2007).

Details

Package: fuzzyFDR
Type: Package
Version: 1.0
Date: 2007-10-16
License: GPL

The main function is fuzzyBHexact, which calculates exact fuzzy decision rules for multiple testing with discrete p-values, controlling the false discovery rate using the Benjamini and Hochberg method.

Author(s)

Alex Lewin Maintainer: Alex Lewin <[email protected]>

References

Kulinsakaya and Lewin (2007).

Examples

data(example1)
names(example1)
fuzzyBHexact(example1$pvals,example1$pprev,alpha=0.05)
data(example2)
names(example2)
fuzzyBHexact(example2$pvals,example2$pprev,alpha=0.05)

Examples 1 and 3 of Kulinskaya and Lewin

Description

Observed and previously attainable p-values used in Examples 1 and 3 of Kulinskaya and Lewin.

Usage

data(example1)

Format

A data frame with 7 observations on the following 2 variables.

pvals

a numeric vector

pprev

a numeric vector

Source

Kulinskaya and Lewin (2007).

Examples

data(example1)
fuzzyBHexact(example1$pvals,example1$pprev,alpha=0.05)

Example 2 of Kulinskaya and Lewin

Description

Observed and previously attainable p-values used in Example 2 of Kulinskaya and Lewin.

Usage

data(example2)

Format

A data frame with 10 observations on the following 2 variables.

pvals

a numeric vector

pprev

a numeric vector

Source

Kulinskaya and Lewin (2007).

Examples

data(example2)
fuzzyBHexact(example2$pvals,example2$pprev,alpha=0.05)

Exact calculation of fuzzy decision rules (Benjamini and Hochberg FDR)

Description

Exact calculation of fuzzy decision rules for multiple testing. Controls the FDR (false discovery rate) using the Benjamini and Hochberg method.

Usage

fuzzyBHexact(pvals, pprev, alpha = 0.05, tol = 1e-05, q.myuni = T, dp = 20)

Arguments

pvals

observed discrete p-values

pprev

previously attainable p-values under the null distribution

alpha

significance level of the FDR procedure

tol

tolerance for my.match and my.unique

q.myuni

logical. Use my.match instead of match?

dp

no. decimal places to round p-values to

Details

my.match and my.unique may be used instead of match and unique if there is a problem with calculating the unique set of p-values (sometimes a problem with very small p-values)

Value

Data frame containing the p-values and previously attainable p-values input to the function, and the tau (fuzzy decision rule) output. Also contains the minimum and maximum ranks over allocations for each p-value.

Author(s)

Alex Lewin

References

Kulinsakaya and Lewin (2007).

Examples

data(example1)
names(example1)
fuzzyBHexact(example1$pvals,example1$pprev,alpha=0.05)
data(example2)
names(example2)
fuzzyBHexact(example2$pvals,example2$pprev,alpha=0.05)