kinship.emp: Empirical kinship

View source: R/kinship.emp.R

kinship.empR Documentation

Empirical kinship

Description

Function to compute empirical kinship for a set of individuals

Usage

kinship.emp(
  population = NULL,
  animals = NULL,
  gen = NULL,
  database = NULL,
  cohorts = NULL,
  sym = FALSE,
  use.id = TRUE
)

Arguments

population

Population list

animals

List of animals to compute kinship for

gen

Quick-insert for database (vector of all generations to export)

database

Groups of individuals to consider for the export

cohorts

Quick-insert for database (vector of names of cohorts to export)

sym

If True derive matrix entries below principle-diagonal

use.id

Set TRUE to use animal IDs for column/row-names in the output matrix (default: TRUE)

Value

Empirical kinship matrix (IBD-based since Founders)

Examples

data(ex_pop)
kinship <- kinship.emp(population=ex_pop, database=cbind(2,1,1,25))

MoBPS documentation built on Nov. 5, 2025, 6:26 p.m.

Related to kinship.emp in MoBPS...