calculateG: Calculate the genetic component of the phenotype

Description Usage Arguments Value

View source: R/simulation.R

Description

Calculates the genetic component of the phenotype from a genotype.

Usage

1
calculateG(effectSize, X, model)

Arguments

effectSize

A vector with the effect size of each SNP.

X

Genotypes in a numeric matrix, where each row is a sample and each column a SNP.

model

Genetic model to assume.

Value

A vector with the genetic component of each sample.


martini documentation built on Nov. 8, 2020, 5:39 p.m.