Skip to contents

Returns the mean genetic values for all traits

Usage

meanG(pop)

Arguments

pop

an object of Pop-class or HybridPop-class

Examples

#Create founder haplotypes
founderPop = quickHaplo(nInd=10, nChr=1, segSites=10)

#Set simulation parameters
SP = SimParam$new(founderPop)
SP$addTraitA(10)
SP$setVarE(h2=0.5)
SP$nThreads = 1L

#Create population
pop = newPop(founderPop, simParam=SP)
meanG(pop)
#>       Trait1 
#> 1.110223e-17