additive_genetic: Build an additive_genetic model

Description Usage Arguments Value Examples

View source: R/genetic.R

Description

Check conformity of arguments and return a additive_genetic object.

Usage

1
additive_genetic(pedigree, incidence)

Arguments

pedigree

object of class 'pedigree'

incidence

matrix-like object

Value

A list with elements pedigree, incidence.matrix, structure.matrix and structure.type, which is a string indicating either covariance or precision.

Examples

1
2
3
4
5
ped <- pedigreemm::pedigree(sire = c(NA,NA,1, 1,4,5),
                            dam  = c(NA,NA,2,NA,3,2),
                            label= 1:6)
inc <- cbind(0, 0, diag(4))
breedR:::additive_genetic(ped, inc)

famuvie/breedR documentation built on Sept. 6, 2021, 4:50 a.m.