Learn R Programming

scmamp (version 0.2.55)

adjustShaffer: Shaffer's correction of p-values in pairwise comparisons. .

Description

This function implements the Shaffer's (static) multiple testing correction when the p-values correspond with pairwise comparisons.

Usage

adjustShaffer(raw.matrix)

Arguments

raw.matrix
A matrix with the pairwise p-values. The p-values have to be, at least, in the upper part of the matrix.

Value

A symetric matrix with the corrected p-values.

Details

The test has been implemented according to the version in Garcia and Herrera (2008), page 2680.

References

S. Garcia and F. Herrera (2008) An Extension on "Statistical Comparisons of Classifiers over Multiple Data Sets" for All Pairwise Comparisons. Journal of Machine Learning Research, 9, 2677-2694.

J.P. Shaffer (1986) Modified sequentially rejective multiple test procedures. Journal of the American Statistical Association, 81(395), 826-831.

Examples

Run this code
data(data_gh_2008)
raw.pvalues <- friedmanPost(data.gh.2008)
raw.pvalues
adjustShaffer(raw.pvalues)

Run the code above in your browser using DataLab