ip_F {purgeR} | R Documentation |
Inbreeding coefficient
Description
Computes the standard inbreeding coefficient (F). This is the probability that two alleles on a locus are identical by descent (Falconer and Mackay 1996, Wright 1922), calculated from the genealogical coancestry matrix (Malécot 1948).
Usage
ip_F(ped, name_to = "Fi")
Arguments
ped |
A dataframe containing the pedigree. Individual (id), maternal (dam), and paternal (sire) identities are mandatory columns. |
name_to |
A string naming the new output column. |
Value
The input dataframe, plus an additional column with individual inbreeding coefficient values (named "Fi" by default).
References
Falconer DS, Mackay TFC. 1996. Introduction to Quantitative Genetics. 4th edition. Longman, Essex, U.K.
Malécot G, 1948. Les Mathématiques de l’hérédité. Masson & Cie., Paris.
Wright S. 1922. Coefficients of inbreeding and relationship. The American Naturalist 56: 330-338.
See Also
Examples
data(dama)
dama <- ip_F(dama)
tail(dama)