A wrapper for accessing the ebv slot
Arguments
- pop
a
Pop-class
or similar object
Examples
#Create founder haplotypes
founderPop = quickHaplo(nInd=10, nChr=1, segSites=10)
#Set simulation parameters
SP = SimParam$new(founderPop)
SP$addTraitAD(10, meanDD=0.5)
SP$setVarE(h2=0.5)
#Create population
pop = newPop(founderPop, simParam=SP)
pop@ebv = matrix(rnorm(pop@nInd), nrow=pop@nInd, ncol=1)
ebv(pop)
#> [,1]
#> [1,] -1.5437975
#> [2,] -1.1394194
#> [3,] 0.3708026
#> [4,] 0.2492918
#> [5,] 1.2404153
#> [6,] -0.3715940
#> [7,] 0.9088430
#> [8,] 0.7720734
#> [9,] 0.3666471
#> [10,] 0.2340631