One call for what an evaluation is for. ebv() returns a named vector and accuracy()
returns another; joining them by name is work the caller should not be doing.
Arguments
- fit
result of
model(),model_mt()orsnp_blup()- pedigree
the SAME pedigree the fit was built on. Needed for the accuracy of a group with a pedigree term (animal(), sire(), maternal(), a single step), whose prior variance is 1 + F of each animal: without it that group gets no accuracy column. A group of iid terms carries its own prior variance and gets the column without it (see
accuracy()). In a multi-trait fit it gets the column only withtrait =, because the accuracy is per trait. Asnp_blup()fit has no PEV (it solves by conjugate gradients) and takes nopedigree- group
covariance group; by default the group of the direct genetic term: the first pedigree or genomic term that is not
maternal(), else the firstmaternal()term, else the first group; the same default inebv(),solutions(),accuracy(),h2()andh2_curve()- trait
for a multi-trait fit (
model_mt()), which trait. Without it the table lists every trait, with ids written "level|trait", and has noacccolumn; given apedigreebut notrait =, the call stops and asks for one, asaccuracy()does
Value
a data.frame with one row per level of the group: id, ebv, se (the square
root of the PEV, absent when the fitter does not produce PEV) and acc, when
pedigree is given or the group needs none (see pedigree and trait). Sorted by
ebv, descending, which is the order the table is read in. A group with more than
one effect per level (direct and maternal, two correlated iid terms, the
coefficients of a reaction norm) lists each level once per effect, and a
term column after id says which effect the row belongs to, named as in the
components (animal, maternal, rn[0], rn[1]); se and acc are the ones of
that effect. A group with one effect per level has no term column. When the fit warned that its records form blocks with no
genetic link between them, whose difference the fixed effects absorb (see
pedigree in model()), a block column gives the block of each animal (1 is
the block with the most records): breeding values compare only within a block.
See also
ebv() and accuracy() for the pieces, h2() for the ratio