rrBLUP_ML0_calc_etasq#

pybrops.model.gmod.rrBLUPModel0.rrBLUP_ML0_calc_etasq(V, y)[source]#

Calculate eta squared values for fast computation of likelihoods.

Parameters:
  • V (numpy.ndarray) – A matrix of shape (nobs,ncomp) containing the non-zero eigenvectors of the spectral decomposition.

  • y (numpy.ndarray) – A vector of shape (nobs,) containing zero centered observations.

Returns:

etasq – A vector of shape (ncomp,) containing squared eta values.

Return type:

numpy.ndarray