HolmBonferroni {MSCquartets} | R Documentation |
Apply Holm-Bonferroni method to adjust for multiple tests
Description
Apply the Holm-Bonferroni method to adjust for multiple hypothesis tests performed on quartets from a data set of gene trees.
Usage
HolmBonferroni(pTable, model, alpha = 0.05)
Arguments
pTable |
a table of quartets with p-values, as computed by
|
model |
one of |
alpha |
a critical value, for rejection of adjusted p-values less than or equal to |
Details
When p-values are computed for each quartet using
quartetTreeTestInd
or quartetStarTestInd
,
multiple comparisons are being done for one dataset. The
Holm-Bonferroni method (Holm 1979) adjusts these p-values upward,
controlling the familywise error rate. The probability
of at least one false discovery (rejection of the null hypothesis)
is no more than the significance level.
The Holm-Bonferroni method does not require that test hypotheses are independent, which is important for its application to quartet counts presumed to have arisen on a single species tree.
This can be a low power test (often failing to reject when the null hypothesis is false). In particular for the T1 and T3 tests, it does not consider the relationships between edge lengths for different sets of four taxa.
Warning: Output of this function should not be used as input for other MSCquartets functions, as it reorders the quartets in the table.
Value
the same table, with rows reordered, and 2 new columns of 1) adjusted p-values, and 2) "Y" or "N" for indicating "reject" or "fail to reject"
References
Holm S (1979). “A simple sequentially rejective multiple test procedure.” Scand. J. Statist., 6(2), 65-70.
See Also
quartetTreeTestInd
, quartetStarTestInd
Examples
gtrees=read.tree(file=system.file("extdata","dataGeneTreeSample",package="MSCquartets"))
taxanames=taxonNames(gtrees)
QT=quartetTable(gtrees,taxanames[1:6])
RQT=quartetTableResolved(QT)
pTable=quartetTreeTestInd(RQT,"T3")
pTable[1:10,]
HBpTable=HolmBonferroni(pTable,"T3",.05)
HBpTable[1:10,]