kinship.emp: Empirical kinship

Description Usage Arguments Value Examples

View source: R/kinship.emp.R

Description

Function to compute empirical kinship for a set of individuals)

Usage

1
2
3
4
5
6
7
8
kinship.emp(
  animals = NULL,
  population = NULL,
  gen = NULL,
  database = NULL,
  cohorts = NULL,
  sym = FALSE
)

Arguments

animals

List of animals to compute kinship for

population

Population list

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

Value

Empirical kinship matrix (IBD-based since Founders)

Examples

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

MoBPS documentation built on Nov. 9, 2021, 5:08 p.m.

Related to kinship.emp in MoBPS...