add_pedigree_sex_column: given a pedigree as Kid Pa Ma, this adds a column called Sex

Description Usage Arguments

View source: R/add_pedigree_sex_column.R

Description

This just uses the occurrence of each each individual in the pedigree as Ma or Pa to figure out its sex. Individuals with no offspring are randomly assigned to be females (2) with probability fem_prob, and are males (1) otherwise. This function does not check for sex inconsistencies.

Usage

1
add_pedigree_sex_column(P, fem_prob = 0.5)

Arguments

P

the pedigree with columns Kid Pa Ma

fem_prob

prob that unknown sex indiv is assigned as female.


eriqande/gdropR documentation built on Feb. 25, 2021, 2:59 p.m.