View source: R/artificial_data.R
artificialPhenotypes | R Documentation |
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", ... )
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 |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.