impute_geno: Filling in missing genotype

Description Usage Arguments Value Examples

View source: R/rlib_util.R

Description

Filling in the missing genotype as the average.

Usage

1

Arguments

x

genotype (dimension N x P)

Value

genotype matrix with missing values being imputed

Examples

1
2
3
impute_geno(
  x = matrix(sample(c(0, 0.5, 1), 200, replace = TRUE), ncol = 2)
)

liangyy/mixqtl documentation built on Sept. 17, 2020, 11:36 a.m.