SimParam_setVarE {AlphaSimR} | R Documentation |
Defines a default value for error variances in the simulation.
h2 |
a vector of desired narrow-sense heritabilities |
H2 |
a vector of desired broad-sense heritabilities |
varE |
a vector of error variances |
SP$setVarE(h2 = NULL, H2 = NULL, varE = NULL)
#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)