Compute the overall kinship matrix for a collection of families, and store it efficiently.

makekinship(famid, id, father.id, mother.id, unrelated=0)

Arguments

famid

a vector of family identifiers

id

a vector of unique subject identifiers

father.id

for each subject, the identifier of their biolgical father

mother.id

for each subject, the identifier of thier biological mother

unrelated

subjects with this family id are considered to be unrelated singletons, i.e., not related to each other or to anyone else.

Value

a sparse kinship matrix of class bdsmatrix

Details

This command is depricated. The kinship command now can be applied directly to pedigreeList objects.

See also

Examples