Learn R Programming

mev (version 1.17)

.C1: Contrast matrix

Description

Produces a contrast matrix with (1,-1) elements running down the two diagonals

Usage

.C1(k)

Value

a k-1 x k contrast matrix

Arguments

k

number of columns (the number of rows is k-1)