calculateG: Calculate the genetic component of the phenotype

View source: R/simulation.R

calculateGR 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.


hclimente/martini documentation built on Feb. 26, 2024, 6:23 p.m.