apc {bmet} | R Documentation |
Function creates a contrast matrix for all pairwise comparisons
apc(ngroups, labs = NULL)
ngroups |
A positive integer greater than 1 denoting the number of groups |
labs |
A vector of groups labels with length equal to |
The function returns a matrix of all pairwise contrasts.
### A contrast matrix based on all pairwise contrasts of 5 groups
apc(5)
### Adding group labels
apc(5, labs = paste("Group", 1:5, sep = " "))