torch_openreml.marginal_predict¶
- torch_openreml.marginal_predict(y, x, v)[source]¶
Compute marginal fitted values from fixed effects only.
\[\hat{\symbf{y}} = \symbf{X}\hat{\boldsymbol{\beta}}\]where \(\hat{\boldsymbol{\beta}}\) is the BLUE of the fixed effects (see
blue()).- Parameters:
y (torch.Tensor) – Response vector of shape
(n,).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:
Marginal fitted values of shape
(n,).- Return type:
torch.Tensor