View source: R/math_functions.R
| sum_to_zero | R Documentation |
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)
x |
A numeric vector of length K-1. |
A numeric vector of length K whose elements sum to zero.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.