Description Usage Arguments Details Value Examples
Apply the [HSU], [HSD], [AHSU] or [AHSD] procedure, without computing the critical constants, to a data set of 2 x 2 contingency tables using Fisher's exact tests.
1 2 3 4 5 6 7 8 | fast.Discrete(
counts,
alternative = "greater",
input = "noassoc",
alpha = 0.05,
direction = "su",
adaptive = FALSE
)
|
counts |
a data frame of 2 or 4 columns and any number of lines,
each line representing a 2 x 2 contingency table to test.
The number of columns and what they must contain depend on the value of the |
alternative |
same argument as in |
input |
the format of the input data frame, see Details of |
alpha |
the target FDR level, a number strictly between 0 and 1. For |
direction |
a character string specifying whether to conduct a step-up ( |
adaptive |
a boolean specifying whether to conduct an adaptive procedure or not. |
This version: 2019-06-18.
A DiscreteFDR
S3 class object whose elements are:
Rejected |
Rejected raw p-values |
Indices |
Indices of rejected hypotheses |
Num.rejected |
Number of rejections |
Adjusted |
Adjusted p-values (only for step-down direction). |
Method |
Character string describing the used algorithm, e.g. 'Discrete Benjamini-Hochberg procedure (step-up)' |
Signif.level |
Significance level |
Data$raw.pvalues |
The values of |
Data$pCDFlist |
The values of |
Data$data.name |
The variable name of the |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | X1 <- c(4, 2, 2, 14, 6, 9, 4, 0, 1)
X2 <- c(0, 0, 1, 3, 2, 1, 2, 2, 2)
N1 <- rep(148, 9)
N2 <- rep(132, 9)
Y1 <- N1 - X1
Y2 <- N2 - X2
df <- data.frame(X1, Y1, X2, Y2)
df
DBH.su <- fast.Discrete(counts = df, input = "noassoc", direction = "su")
summary(DBH.su)
DBH.sd <- fast.Discrete(counts = df, input = "noassoc", direction = "sd")
DBH.sd$Adjusted
summary(DBH.sd)
ADBH.su <- fast.Discrete(counts = df, input = "noassoc", direction = "su", adaptive = TRUE)
summary(ADBH.su)
ADBH.sd <- fast.Discrete(counts = df, input = "noassoc", direction = "sd", adaptive = TRUE)
ADBH.sd$Adjusted
summary(ADBH.sd)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.