Learn R Programming

AlphaSimR (version 0.10.0)

SimParam_setVarE: 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

Run this code
# 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