varComp: varComp

View source: R/varComp.R

varCompR Documentation

varComp

Description

varComp function will estimate variance components

Usage

varComp(K, Y, X)

Arguments

K

is obtained from the Kinship function

Y

is the phenotype matrix, individual x phenotypes

X

is the SNP matrix, individual x SNPs

Value

Variance components Vg: genetic factor Ve: environment factor

Examples

   X <- as.matrix(read.table("./testData/X_rightdim.txt"))
   Y <- as.matrix(read.table("./testData/Y_rightdim.txt"))
   K <- Kinship(X)
   
   VC <- varComp(K, Y, X)

2eding/GRAMMAR documentation built on Jan. 18, 2024, 6 a.m.