grmPhenoEval: grmPhenoEval function

Description Usage Arguments Details Value Examples

View source: R/AnalysisFunctions.R

Description

function to take a data.frame coming from framePhenoRec and GRM and analyze them with individuals as a random effect with a GRM covariance matrix

Usage

1
grmPhenoEval(phenoDF, grm)

Arguments

phenoDF

A data.frame of phenotypic observations. See framePhenoRec for details

grm

A genomic relationship matrix

Details

Given all the phenotypic records calculate the GEBV for each individual using all its records

Value

Named real vector of the BLUPs of all individuals in phenoDF (names are the individual ids), with appropriate weights by error variance of the observation

Examples

1
2
3
phenoDF <- framePhenoRec(records, bsp)
grm <- makeGRM(records, bsp, SP)
grmBLUPs <- grmPhenoEval(phenoDF, grm)

jeanlucj/AlfSimHlpR documentation built on Nov. 7, 2021, 5:10 p.m.