Returns non-additive deviations for all traits (includes dominance and epistatic deviations)
Details
Non-additive deviations derive from the breeding value parameterization of genetic values.
They have mean zero in pop,
which supplies the reference quantities used by genParam.
Evaluating the same individual in a different population can therefore
change its returned values.
The total non-additive deviation is nd = dd + aa.
See the Quantitative Genetics article for background theory and its demonstration.
Examples
#Create founder haplotypes
founderPop = quickHaplo(nInd=10, nChr=1, segSites=10)
#Set simulation parameters
SP = SimParam$new(founderPop)
SP$addTraitADE(10, meanDD=0.5, relAA=0.2)
#Create population
pop = newPop(founderPop, simParam=SP)
cbind(dd(pop, simParam=SP),
aa(pop, simParam=SP),
nd(pop, simParam=SP))
#> Trait1 Trait1 Trait1
#> [1,] -0.35802701 -0.42839924 -0.78642626
#> [2,] 0.32137545 -0.39341630 -0.07204084
#> [3,] 0.01437719 -0.20540455 -0.19102736
#> [4,] 0.34645841 0.03328561 0.37974401
#> [5,] -0.28085763 1.08798825 0.80713063
#> [6,] 0.20414380 0.11837483 0.32251863
#> [7,] -0.40895739 0.67574401 0.26678662
#> [8,] 0.06911124 -0.42650772 -0.35739648
#> [9,] -0.13405937 -0.24689140 -0.38095076
#> [10,] 0.22643531 -0.21477349 0.01166182