Gmatrix: Generate G

View source: R/Gmatrix.R

GmatrixR Documentation

Generate G

Description

Function to generate the G matrix from marker data.

Usage

Gmatrix(X = NULL, method = "cross.product.average")

Arguments

X

Is a Marker matrix with marker Ids are in columns and Individuals are in rows

method

One of "cross.product", "cross.product.average" or "VanRaden". The default methods is "cross.product.average". "cross.product is simply XX'. "cross.product.average" is X centered and scaled and then XX' divided the number of markers "VanRaden" is X centered and scaled by the allele frequency as in VanRaden 2007.


leocrh/FPGC documentation built on Nov. 15, 2024, 2:46 a.m.