construct the kinship matrix from a graph representation of a family, centered on an index person (proband).
get_kinship(fam_graph, h2, index_id = NA, add_ind = TRUE, fix_diag = TRUE)
graph.
heritability.
proband id. Only used in conjuction with add_ind = TRUE.
add genetic liability to the kinship matrix. Defaults to true.
Whether to set diagonal to 1 for all entries except for the genetic liability.
A kinship matrix.