If the fitted relationship matrix is \(G=(1-\lambda)sZZ^\top+\lambda I\), the
BLUP of the marker effects is
$$\hat a=(1-\lambda)s\,Z^\top G^{-1}\hat u,$$
using the same \(G^{-1}\) as the fit, so \(Z\hat a=\hat u-\lambda G^{-1}\hat u\)
(exactly \(\hat u\) when \(\lambda=0\)). For structured terms such as
vsm(dsm(env), ism(id), Gu=Gi) effects are returned per coordinate
(environment, trait, ...).
With se=TRUE, following Gualdron-Duarte et al. (2014),
$$\mathrm{Var}(\hat a)=H^\top(\sigma^2_c G - C^{uu})H,\qquad H=(1-\lambda)sG^{-1}Z,$$
where \(\sigma^2_c\) is the variance of the coordinate and \(C^{uu}\) the
prediction error covariance of the term; \(z=\hat a/\mathrm{SE}\) gives
back-solved GWAS tests. Only diagonal elements are formed: the \(C^{uu}\)
part uses solves with the stored coefficient matrix in blocks of chunk
markers, sharing one coefficient-matrix factorization across blocks and
coordinates. The marker transform \(G^{-1}Z\) is formed only for each block;
effects-only calculations do not materialize it for all markers.
Rebuilding \(G^{-1}\), if no retained precision is available, requires the
data used in the original call; supply Gu otherwise. Markers removed by
the filters are returned as NA.