pedIBD | R Documentation |

Calculates the **ped**igree based probability of alleles to be **IBD**. This pedigree based kinship matrix is also called coancestry matrix and is half the additive relationship matrix.

`pedIBD(Pedig, keep.only=NULL, keep=keep.only, kinFounder=NULL)`

`Pedig` |
Data frame containing the pedigree with |

`keep` |
If |

`keep.only` |
If |

`kinFounder` |
Kinship matrix for the founders. The row names are the ids of the founders. By default, founders are assumed to be unrelated. Founders not included in this matrix are also assumed to be unrelated. |

Computation of pedigree based kinship matrix f which is half the additive relationship matrix. For individuals i and j it is defined as

fij = Probability that two alleles chosen from individuals i and j are IBD. |

Kinship matrix.

Robin Wellmann

```
data(PedigWithErrors)
data(Phen)
keep <- Phen$Indiv
Pedig <- prePed(PedigWithErrors, keep=keep, thisBreed="Hinterwaelder", lastNative=1970)
pedA <- pedIBD(Pedig, keep.only=keep)
```

optiSel documentation built on May 31, 2023, 6:50 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.