Creates table of p values for pairwise comparisons with corrections for multiple testing.
pairwise.table(compare.levels, level.names, p.adjust.method)
a function
to compute (raw) p value
given indices i
and j
.
names of the group levels
a character string specifying the method for
multiple testing adjustment; almost always one of
p.adjust.methods
. Can be abbreviated.
Table of p values in lower triangular form.
Functions that do multiple group comparisons create separate
compare.levels
functions (assumed to be symmetrical in i
and j
) and passes them to this function.