error_probs: Return error matrices

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Return error matrices

Usage

1
2
3
4
5
error_probs(mx, merr)

gen_error_mat(major.error, het.error, minor.error)

error_mx2(major.error, het.error, minor.error)

Arguments

mx

A error matrix.

merr

Error value for missing data.

Value

error_mx returns a list of three matrices. In this matrix, row1 is true_gen 00, row2 is true_gen 01, row3 is true_gen 11. cols 1-3 are obs. genotype (00,01,11) and last col4 is the missing data. 1. 00x01 2. 01x01 3. 11x01

Examples

1
2
3
4
5
#Genotype error matrix
gen_error_mat(hom.error=0.02, het.error=0.8)

#Genotype error by consideringMendelian segregation rate
error_mx(hom.error=0.02, het.error=0.8)

yangjl/imputeR documentation built on May 4, 2019, 2:28 p.m.