A function to calculate neighbor QTL effects between two individuals, with given deviation coefficients and conditional genotype probabilities.
neiprob(i, j, a2, d2, AA, AB, BB, d2sq0 = FALSE)
ID of a target individual.
ID of an interacting neighbor.
A numeric scalar indicating additive deviation.
A numeric scalar indicating dominance deviation.
An individual x marker matrix of conditional probabilities for AA genotype.
An individual x marker matrix of conditional probabilities for AB genotype. Input NA if heterozygotes are absent.
An individual x marker matrix of conditional probabilities for BB genotype. Input NA for backcross lines.
An option to make AB/AB interaction effects zero.
A numeric vector containing each marker effect for individual i.