| 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 |
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).
| 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.
Alex Lewin Maintainer: Alex Lewin <[email protected]>
Kulinsakaya and Lewin (2007).
data(example1) names(example1) fuzzyBHexact(example1$pvals,example1$pprev,alpha=0.05) data(example2) names(example2) fuzzyBHexact(example2$pvals,example2$pprev,alpha=0.05)data(example1) names(example1) fuzzyBHexact(example1$pvals,example1$pprev,alpha=0.05) data(example2) names(example2) fuzzyBHexact(example2$pvals,example2$pprev,alpha=0.05)
Observed and previously attainable p-values used in Examples 1 and 3 of Kulinskaya and Lewin.
data(example1)data(example1)
A data frame with 7 observations on the following 2 variables.
pvalsa numeric vector
ppreva numeric vector
Kulinskaya and Lewin (2007).
data(example1) fuzzyBHexact(example1$pvals,example1$pprev,alpha=0.05)data(example1) fuzzyBHexact(example1$pvals,example1$pprev,alpha=0.05)
Observed and previously attainable p-values used in Example 2 of Kulinskaya and Lewin.
data(example2)data(example2)
A data frame with 10 observations on the following 2 variables.
pvalsa numeric vector
ppreva numeric vector
Kulinskaya and Lewin (2007).
data(example2) fuzzyBHexact(example2$pvals,example2$pprev,alpha=0.05)data(example2) fuzzyBHexact(example2$pvals,example2$pprev,alpha=0.05)
Exact calculation of fuzzy decision rules for multiple testing. Controls the FDR (false discovery rate) using the Benjamini and Hochberg method.
fuzzyBHexact(pvals, pprev, alpha = 0.05, tol = 1e-05, q.myuni = T, dp = 20)fuzzyBHexact(pvals, pprev, alpha = 0.05, tol = 1e-05, q.myuni = T, dp = 20)
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 |
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)
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.
Alex Lewin
Kulinsakaya and Lewin (2007).
data(example1) names(example1) fuzzyBHexact(example1$pvals,example1$pprev,alpha=0.05) data(example2) names(example2) fuzzyBHexact(example2$pvals,example2$pprev,alpha=0.05)data(example1) names(example1) fuzzyBHexact(example1$pvals,example1$pprev,alpha=0.05) data(example2) names(example2) fuzzyBHexact(example2$pvals,example2$pprev,alpha=0.05)