Skip to contents

Transforms a vector of length K-1 to a vector of length K that sums to zero using an orthogonal basis matrix.

Usage

sum_to_zero(x)

Arguments

x

A numeric vector of length K-1.

Value

A numeric vector of length K whose elements sum to zero.