fullPTable function

Convert a lower triangle matrix to a full matrix

Convert a lower triangle matrix to a full matrix

Converts a lower triangle matrix to a full matrix.

fullPTable(PT)

Arguments

  • PT: A lower triangle matrix.

Returns

A full matrix.

Details

This function is useful to convert a lower triangle matrix of p-values from a pairwise test to a full matrix. A full matrix can be passed to multcompLetters

in the multcompView package to produce a compact letter display.

Examples

### Example with pairwise.wilcox.test data(BrendonSmall) BrendonSmall$Instructor = factor(BrendonSmall$Instructor, levels = c('Brendon Small', 'Jason Penopolis', 'Paula Small', 'Melissa Robbins', 'Coach McGuirk')) P = pairwise.wilcox.test(x = BrendonSmall$Score, g = BrendonSmall$Instructor) PT = P$p.value PT PT1 = fullPTable(PT) PT1 library(multcompView) multcompLetters(PT1)

References

https://rcompanion.org/handbook/F_08.html

See Also

cldList

Author(s)

Salvatore Mangiafico, mangiafico@njaes.rutgers.edu