kinship | R Documentation |
Calculate kinship coefficients from a pedigree.
kinship(ped, ids, all = TRUE, msg = TRUE)
ped |
A pedigree, which a data frame (id, sire, dam, ...). If given, "generation" can be numeric 0, 1, 2, ... or non-numeric "F0", "F1", "F2", ... If "sex" is included, male should be "M", "Male" or 1, and female should be "F", "Female" or 2 (other than 0 and 1). If a founder is inbred, its ID should be tagged by character 'i' (e.g. 1i, 2i, etc.). Note that 0 is reserved for missing values. |
ids |
IDs of the individuals. If given, kinship coefficients are extracted for individuals with ID |
all |
If false, sires and dams with no parents are treated as unknown. |
msg |
If false, messages are suppressed. |
A matrix giving kinship coefficients.
data(miscEx)
ids<- sample(pedF8$id,10)
## Not run:
ksp<- kinship(pedF8,ids=ids)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.