Each marker is assigned an effect based on the passed distribution. Heritability (h2) controls how much GEBV are close to phenotypes (h2=1 means no distinction, h2=0 means no correlation)
artificialPhenotypes(
genotypes,
mu = 0,
h2 = 0.8,
markersEffectDistr = "rnorm",
...
)
a list of three elements: $GEBV is an array of genetic breeding values, $phenotypes is the array of phenotypes, and $markerEffects is an array of marker effects
a samples x markers matrix of 0/1/2...ploidy
intercept (added to everything)
heritability (must be greater than zero, an less than or equal to one)
name of the random generation function of the selected distribution for markers effects. It must accept n as argument indicating the number of elements to be returned.
further parameters are passed to markersEffectDistr