add_ma_gen: Adds a generation of offspring after selecting mates by...

Description Usage Arguments Value

Description

The maximum avoidance is found by a call to amat and using it to evaluate 1000 random swaps. The average inbreeding of the offspring and the group coancestry are calculated and printed, together with the deviation from random mating. In creating the offspring, the function makes calls to the blup function for calculating the EBV, and the a_mat function for calculating the inbreeding coefficient from the leading diagonal.

Usage

1
add_ma_gen(ddf, hh)

Arguments

ddf

A data frame with the 9 columns as generated by new_pop

hh

Heritability of the trait in the data frame

Value

An data frame of the same form as the input but extended by a number of offspring deteremined by noff. If noff has unequal numbers of offspring from male and female parents, or gives numbers of offspring are not even, or the heritability is out of bounds then errors are printed and the input data frame is returned unchanged.


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