Skip to contents

Returns breeding values for all traits

Usage

bv(pop, simParam = NULL)

Arguments

pop

an object of Pop-class

simParam

an object of SimParam

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)
bv(pop, simParam=SP)
#>           Trait1
#>  [1,] -1.3729488
#>  [2,] -1.1032907
#>  [3,]  1.3956753
#>  [4,] -0.5037185
#>  [5,]  1.1098749
#>  [6,]  0.8228828
#>  [7,]  1.1810924
#>  [8,]  0.1094414
#>  [9,] -0.9555724
#> [10,] -0.6834364