Define genetic, interaction, and error variances
defineVariances(sEnv = NULL, gVariance = 1, locCorrelations = NULL,
gByLocVar = 1, gByYearVar = 1, fracGxEAdd = 1,
plotTypeErrVars = c(Standard = 1))the environment that BSL functions operate in. Default is "simEnv" so use that to avoid specifying when calling functions
genetic variance in the initial population Default is 1
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
scalar: the genotype by location variance Default is 1, BUT if locCorrelations given, this parameter is not used)
scalar: the genotype by year variance Default is 1
scalar: for GxL and GxY what fraction of the effect is additive versus non-additive Default is 1
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