Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

kindepth

Compute the depth of each subject in a pedigree


Description

Mark each person as to their depth in a pedigree; 0 for a founder, otherwise depth = 1 + max(father's depth, mother's depth)

Usage

kindepth(id, dad.id, mom.id, align = FALSE)

Arguments

id

Identification code for each individual

dad.id

Id code for the father

mom.id

Id code for the mother

align

If align=T, go one step further and try to make both parents of each child have the same depth. (This is not always possible). It helps the drawing program by lining up pedigrees that "join in the middle" via a marriage.

Details

In the case of an inbred pedigree a perfect alignment obeying extra=TRUE may not exist.

Value

an integer vector containing the depth for each subject

Author(s)

Terry Therneau

See Also


kinship2

Pedigree Functions

v1.8.5
GPL (>= 2)
Authors
Jason Sinnwell [aut, cre], Terry Therneau [aut], Daniel Schaid [ctb], Elizabeth Atkinson [ctb], Carly Mester [ctb]
Initial release
2019-5-31

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.