fullPTable | R Documentation |
Converts a lower triangle matrix to a full matrix.
fullPTable(PT)
PT |
A lower triangle matrix. |
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.
A full matrix.
Salvatore Mangiafico, mangiafico@njaes.rutgers.edu
https://rcompanion.org/handbook/F_08.html
cldList
### 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.