cost_f: Recommends contributions based on relative costs of gain and...

Description Usage Arguments Value

Description

Carries out the standard penalised contributions algorithm, including constraints on totals contributions of males and females, and non-negative contributions. The approximate solution is obtained by the algorithm of Meuwissen. It prints out the recommendations after scaling the contributions to give the required total offspring. The function checks whether the number of parents to be considered exceeds the population, whether there are both males and female parents available. If these checks fail, error messages are printed.

Usage

1
cost_f(ddf, tp, tc, cval)

Arguments

ddf

The data frame of 9 columns holding the population data.

tp

The number of parents to be considered for contributions, assumed to be the most recent.

tc

The number of offspring to be created.

cval

The relative cost of inbreeding which needs to be supplied by the user.

Value

A logical indicating the success of the algorithm or otherwise.


jwoollia/DenHaag documentation built on May 20, 2019, 6:27 a.m.