SG | R Documentation |
Computes selection gain using different selection methods
SG(
Var,
h,
VF = NULL,
P = "1",
DS = NULL,
Year = NULL,
method = "pressure",
verbose = FALSE
)
Var |
The column with the name of the variables of interest |
h |
The column with the restricted heritability values |
VF |
The column with the phenotypic variance values (optional) |
P |
The column with the progeny values or selection pressure (optional) |
DS |
The column with the selection differential values (optional) |
Year |
The column with the year of selection (optional) |
method |
The selection method: 'pressure', 'differential', 'genitor_control", or 'year_weighted' |
verbose |
Logical argument. Runs the code silently if FALSE. |
A data frame with selection gain results
Willyan Junior Adorian Bandeira
Ivan Ricardo Carvalho
Murilo Vieira Loro
Leonardo Cesar Pradebon
Jose Antonio Gonzalez da Silva
library(EstimateBreed)
SG(Var = c("A", "B", "C"), h = 0.5, VF = 1.2, P = "10", method = "pressure")
SG(Var = c("A", "B", "C"), h = 0.5, DS = 1.5, method = "differential")
SG(Var = c("A", "B", "C"), h = 0.5, VF = 1.2, P = "10", method = "genitor_control")
SG(Var = c("A", "B", "C"), h = 0.5, VF = 1.2, P = "10", Year = 5, method = "year_weighted")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.