Learn R Programming

AlphaSimR (version 1.6.0)

varEBV: Variance of estimated breeding values

Description

Returns variance of estimated breeding values for all traits

Usage

varEBV(pop)

Arguments

pop

an object of Pop-class or HybridPop-class

Examples

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

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

#Create population
pop = newPop(founderPop, simParam=SP)
pop@ebv = trtH2 * (pop@pheno - meanP(pop)) #ind performance based EBV
varA(pop)
varEBV(pop)

Run the code above in your browser using DataLab