Learn R Programming

kinship2 (version 1.9.6.1)

makekinship: Create a sparse kinship matrix

Description

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

Usage

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

Value

a sparse kinship matrix of class bdsmatrix

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.

Details

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

See Also

kinship, makefamid