gain | R Documentation |
Genetic gain calculations
gain(
input,
merit = NULL,
desired = NULL,
restricted = NULL,
traits = NULL,
gamma = NULL,
solver = "ECOS",
...
)
input |
either object of |
merit |
named vector of merit coefficients, in genetic standard deviation units |
desired |
named vector of desired gains, in genetic standard deviation units |
restricted |
data frame of restricted traits, see Details |
traits |
optional vector with exactly 2 trait names, to plot elliptical response |
gamma |
contribution of non-additive values for genetic merit |
solver |
name of convex solver (default is "ECOS") |
Either merit
or desired
can be used, not both. The former specifies the relative contribution of each trait to genetic merit, while the latter specifies the relative desired gain in genetic standard deviation units. All traits must be specified. Optional argument restricted
is a data frame with columns "trait" and "sign", where the options for sign are "=",">","<", representing equal to zero, non-negative, and non-positive. When desired
is used, the restricted
argument is ignored.
The argument gamma
controls the definition of genetic merit. (See notation in the journal publication.) The default is NULL, which implies breeding values. For purely additive values, use gamma = 0. For total genotypic value, use gamma = 1.
Note that this function assumes a selection index of BLUPs, not phenotypes.
List containing
quadratic matrix for the ellipsoid
ellipse plot
data frame with the response and index coefficients for all traits
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.