A function to calculate self QTL effects for an individual, with given deviation coefficients and conditional genotype probabilities.
selfprob(i, a1, d1, AA, AB, BB)
ID of a target individual.
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.
A numeric vector containing each marker effect for individual i.