Helmert contrast matrix for isometric log-ratio coordinates
Source:R/03_03_DeCovarT_estimate_ratios_frequentist.R
helmert_basis.RdReturns the \(J\times(J-1)\) Helmert sub-matrix \(\mathbf{V}\)
with
$$
\mathbf{V}^{\mathsf{T}}\mathbf{V}=\mathbf{I}_{J-1},\qquad
\mathbf{V}^{\mathsf{T}}\mathbf{1}=\mathbf{0}.
$$
Column \(k\) contrasts the first \(k\) parts against part
\(k+1\). This is the standard ILR basis used with
isometric_log_ratio() / isometric_logistic(); any other valid ILR
basis is \(\mathbf{V}Q\) for an orthogonal \(Q\), which rotates
coordinates but leaves simplex geometry, eigenvalues of quadratic
forms, and \(\mathrm{Var}(\hat{\boldsymbol{p}})\) unchanged.