powered by
Defines a default value for error variances in the simulation.
a vector of desired narrow-sense heritabilities
a vector of desired broad-sense heritabilities
a vector of error variances
SP$setVarE(h2 = NULL, H2 = NULL, varE = NULL)
# NOT RUN { #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) # }
Run the code above in your browser using DataLab