Learn R Programming

postHoc (version 0.1.3)

AllContrasts: Constructs a matrix with all the contrasts for pairwise comparisons.

Description

Constructs a matrix with all the contrasts for pairwise comparisons.

Usage

AllContrasts(n)

Arguments

n

an integer number larger than 1 giving the number of contrasts defining the pairwise comparisons pairwise comparisons.

Value

a matrix of dimension n(n-1)/2 x n.

Details

This is an auxiliar function forming a contrast matrix of all possible. Generates an error if n is smaller than 2.

Examples

Run this code
# NOT RUN {
AllContrasts(3)
# }

Run the code above in your browser using DataLab