getPropHom: getPropHom

Description Usage Arguments Value

View source: R/utility_functions.R

Description

Compute the per-individual proportion homozygous. For example, to use as a predictor for a directional dominance model.

Usage

1

Arguments

M

dosage matrix. Assumes SNPs in M coded 0, 1, 2 (requires rounding dosages to integers). M is Nind x Mrow, numeric matrix, with row/columanes to indicate SNP/ind ID

Value

vector of per-individual proportion homozygous


wolfemd/predCrossVar documentation built on Dec. 21, 2020, 10:14 a.m.