artificialPhenotypes {GROAN} | R Documentation |
Create a set of artificial phenotypes
Description
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)
Usage
artificialPhenotypes(
genotypes,
mu = 0,
h2 = 0.8,
markersEffectDistr = "rnorm",
...
)
Arguments
genotypes |
a samples x markers matrix of 0/1/2...ploidy |
mu |
intercept (added to everything) |
h2 |
heritability (must be greater than zero, an less than or equal to one) |
markersEffectDistr |
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 |
Value
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
[Package GROAN version 1.3.1 Index]