Qgpu: Vector *Qg* + *u*

View source: R/Qgpu.R

QgpuR Documentation

Vector Qg + u

Description

Adds genetic group contributions to the genetic merit of individuals.

Usage

Qgpu(Q, sol)

Arguments

Q

: The output matrix from qmatL (for more details: ?qmatL)

sol

: data.frame with 2 numeric columns corresponding to ID, EBV ([ĝ, û]), where ĝ and û are the genetic group and genetic merit solutions, respectively. The order of solutions must be the order of columns and the order of rows in matrix Q.

Value

Vector of Qĝ + û

Examples

ped = data.frame(ID=c(3,4,6,5), SIRE=c(1,3,4,1), DAM=c(2,2,5,2))
Q = qmatL(gghead(ped))
ghat = c(0.1, -0.2)
uhat = seq(-1.5, 1.5, 1)
sol = data.frame(ID=1:6, EBV=c(ghat, uhat))
Qgpu(Q, sol)


ggroups documentation built on March 28, 2022, 1:06 a.m.