calculateG {martini} | R Documentation

## Calculate the genetic component of the phenotype

### Description

Calculates the genetic component of the phenotype from a genotype.

### Usage

    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.

[Package martini version 1.10.0 Index]