AllContrasts {postHoc}R Documentation

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.

Details

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

Value

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

Author(s)

Rodrigo Labouriau

Examples

AllContrasts(3)

[Package postHoc version 0.1.3 Index]