Generalised least squares with a fixed residual covariance
Source:R/03_01_first_generation_deconvolution.R
deconvolute_ratios_gls.RdFits
\(\boldsymbol{y}\approx\boldsymbol{\mu}\boldsymbol{p}\) by
MASS::lm.gls() with a known \(G\times G\) residual
covariance W that does not depend on \(\boldsymbol{p}\), then
repair_simplex(). Use fixed_gls_covariance() for the
global-diagonal competitor
\(\operatorname{diag}\{\sum_j \bar p_j^2\boldsymbol{\Sigma}_j\}\).
This is the mean-only GLS gold standard for covariance-structure
benchmarks, not the DeCovarT convolution
\(\boldsymbol{\Sigma}(\boldsymbol{p})=\sum_j p_j^2\boldsymbol{\Sigma}_j\).
Arguments
- y
Numeric bulk vector of length \(G\).
- mean_signature_matrix
Numeric matrix \(G\times J\).
- W
Residual covariance (when
inverse = TRUE) or precision (wheninverse = FALSE), of size \(G\times G\).- inverse
Passed to
MASS::lm.gls();TRUEmeansWis a covariance matrix.