SimParam_setVarE {AlphaSimR}R Documentation

Set simulation error variance

Description

Defines a default value for error variances in the simulation.

Arguments

h2

a vector of desired narrow-sense heritabilities

H2

a vector of desired broad-sense heritabilities

varE

a vector of error variances

Usage

SP$setVarE(h2 = NULL, H2 = NULL, varE = NULL)

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)


[Package AlphaSimR version 0.10.0 Index]