multipleComparisonTest(data, algorithms = NULL, group.by = NULL, test = "aligned ranks", correct = "finner", alpha = 0.05, ...)algorithms parameter, which columns contain the algorithm information.group.by represent the results obtained by an algorithm.NULL, all the data is used for a single comparison.'friedman' - Friedman test, as in Garcia and Herrera (2010)
'aligned ranks' Friedman's Aligned Ranks test, as in Garcia and Herrera (2010)
'quade' - Quade test, as in Garcia and Herrera (2010)
'anova' - ANOVA test, as in Test 22 in Kanji (2006).
If a function is provided, then it has to have as first argument a matrix containing the columns to be compared. The function has to return a list with, at least, an element named p.value (as the htest objects that are usually returned by R's test implementations).
holland - Holland's procedure, as in Garcia and Herrera (2010)
finner - Finner's procedure, as in Garcia and Herrera (2010)
rom - Rom's procedure, as in Garcia and Herrera (2010)
li - Li's procedure, as in Garcia and Herrera (2010)
p.adjust function. For a list of options, type p.adjust.methods
group.by argument is not provided (or it is NULL), the function return an object of class htest. If columns for grouping are provided, then the function returns a matrix that includes, for each group, the values of the group.by columns, the raw p-value and the corrected p-value.#' @seealso friedmanTest, friedmanAlignedRanksTest, quadeTest, anovaTest, adjustShaffer, adjustBergmannHommel, adjustHolland, adjustFinner, adjustRom, adjustLi
Kanji, G. K. (2006) 100 Statistical Tests. SAGE Publications Ltd, 3rd edition.
# Grouped data
data(data_blum_2015)
multipleComparisonTest (data=data.blum.2015,
algorithms=c("FrogCOL", "FrogMIS", "FruitFly"),
group.by=c("Size", "Radius"),
test="quade", correct="finner")
# Not grouped data
data(data_gh_2008)
multipleComparisonTest (data=data.gh.2008, test="aligned ranks",
correct="hochberg")
Run the code above in your browser using DataLab