torch_openreml.post.cov_blue¶
- torch_openreml.post.cov_blue(x, v)[source]¶
Compute the covariance matrix of the BLUE of the fixed effects.
\[\operatorname{Var}(\hat{\boldsymbol{\beta}}) = \left(\symbf{X}^\top\symbf{V}^{-1}\symbf{X}\right)^{-1},\]which is the
C11block of the inverse C-form matrix (seec_inverse_blocks()). The covariance does not depend on the response \(\symbf{y}\), only on the design and the covariance parameters.- Parameters:
x (torch.Tensor) – Fixed-effect design matrix of shape
(n, p).v (torch.Tensor) – Marginal covariance matrix of shape
(n, n), e.g. \(\symbf{V}(\boldsymbol{\theta})\) evaluated at fitted covariance parameters.
- Returns:
BLUE covariance matrix of shape
(p, p).- Return type:
torch.Tensor