R/math_functions.R
sum_to_zero.Rd
Transforms a vector of length K-1 to a vector of length K that sums to zero using an orthogonal basis matrix.
sum_to_zero(x)
A numeric vector of length K-1.
A numeric vector of length K whose elements sum to zero.