Qgpu: Vector *Qg* + *u*

Description Usage Arguments Value Examples

Description

Adds genetic group contributions to the genetic merit of individuals.

Usage

1
Qgpu(Q, sol)

Arguments

Q

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

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

1
2
3
4
5
6
ped = data.frame(ID=c(3,4,6,5), SIRE=c(1,3,4,1), DAM=c(2,2,5,2))
Q = qmat(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 May 11, 2019, 1:03 a.m.