Description Usage Arguments Value
View source: R/defineVariances.R
Define genetic, interaction, and error variances
1 2 3 | defineVariances(sEnv = NULL, gVariance = 1, locCorrelations = NULL,
gByLocVar = 1, gByYearVar = 1, fracGxEAdd = 1,
plotTypeErrVars = c(Standard = 1))
|
sEnv |
the environment that BSL functions operate in. Default is "simEnv" so use that to avoid specifying when calling functions |
gVariance |
genetic variance in the initial population Default is 1 |
locCorrelations |
matrix: genetic correlation in performance between locations default: If given, the genetic co-variance across locations is gVariance * locCorrelations. If NULL, deviations with variance gByLocVar will be added to the main genotypic effect to determine the genotypic value in each location. The expected genetic correlation between locations is then gVariance / (gVariance + gByLocVar). Default is NULL |
gByLocVar |
scalar: the genotype by location variance Default is 1, BUT if locCorrelations given, this parameter is not used) |
gByYearVar |
scalar: the genotype by year variance Default is 1 |
fracGxEAdd |
scalar: for GxL and GxY what fraction of the effect is additive versus non-additive Default is 1 |
plotTypeErrVars |
named vector: names are the plot types and contents are the error variances associated with them (default: Standard=1) |
modifies the list sims in environment sEnv by adding parameters that determine genetic, location, year, and error variances
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.