From an additive only model, fit to multiple traits, predict the mean (breeding value) of each cross for each trait. Corresponds to the mean GEBV of the parents, given parental allelic dosages and (posterior mean) marker effects.

predCrossMeanBVs(CrossesToPredict, postMeanAlleleSubEffects, doseMat)

Arguments

CrossesToPredict

data.frame or tibble, col/colnames: sireID, damID. sireID and damID must both be in the haploMat.

postMeanAlleleSubEffects

list of named vectors (or column matrices) with the posterior mean ALLELE SUBSTITUTION marker effects.

doseMat

dosage matrix. Assumes SNPs in M coded 0, 1, 2 (requires rounding dosages to integers). M is Nind x Mrow, numeric matrix, with row/colnames to indicate SNP/ind ID

Value

tibble with predicted mean BV for each trait in each family