selects {simer}R Documentation

Selection

Description

Select individuals by combination of selection method and criterion.

Usage

selects(SP = NULL, verbose = TRUE)

Arguments

SP

a list of all simulation parameters.

verbose

whether to print detail.

Details

Build date: Sep 8, 2018 Last update: Apr 30, 2022

Value

the function returns a list containing

$sel$pop.sel

the selected males and females.

$sel$ps

if ps <= 1, fraction selected in selection of males and females; if ps > 1, ps is number of selected males and females.

$sel$decr

whether the sort order is decreasing.

$sel$sel.crit

the selection criteria, it can be 'TBV', 'TGV', and 'pheno'.

$sel$sel.single

the single-trait selection method, it can be 'ind', 'fam', 'infam', and 'comb'.

$sel$sel.multi

the multiple-trait selection method, it can be 'index', 'indcul', and 'tmd'.

$sel$index.wt

the weight of each trait for multiple-trait selection.

$sel$index.tdm

the index of tandem selection for multiple-trait selection.

$sel$goal.perc

the percentage of goal more than the mean of scores of individuals.

$sel$pass.perc

the percentage of expected excellent individuals.

Author(s)

Dong Yin

Examples


# Generate annotation simulation parameters
SP <- param.annot(qtn.num = list(tr1 = 10))
# Generate genotype simulation parameters
SP <- param.geno(SP = SP, pop.marker = 1e4, pop.ind = 1e2)
# Generate phenotype simulation parameters
SP <- param.pheno(SP = SP, pop.ind = 100)
# Generate selection parameters
SP <- param.sel(SP = SP, sel.single = "ind")

# Run annotation simulation
SP <- annotation(SP)
# Run genotype simulation
SP <- genotype(SP)
# Run phenotype simulation
SP <- phenotype(SP)
# Run selection
SP <- selects(SP)


[Package simer version 0.9.0.4 Index]