Learn R Programming

⚠️There's a newer version (2.18.0) of this package.Take me there.

nadiv

R package that constructs (non)additive genetic relationship matrices, and their inverses, from a pedigree to be used in linear mixed effect models (A.K.A. the 'animal model'). Also includes other functions to facilitate the use of animal models. Some functions have been created to be used in conjunction with the R package for ASReml software.

See the latest developments:

To obtain nadiv:

  • From R:

    • see the package page for the latest release of nadiv on CRAN where you can download the source.
    • install the latest release of the package directly in R:
    install.packages("nadiv")

    then select your favorite CRAN mirror

  • From GitHub:

    library(devtools); install_github("matthewwolak/nadiv")

Copy Link

Version

Install

install.packages('nadiv')

Monthly Downloads

793

Version

2.17.0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Matthew Wolak

Last Published

January 14th, 2021

Functions in nadiv (2.17.0)

Mrode9

Pedigree, adapted from example 9.1 of Mrode (2005)
aic

Akaike Information Criterion
aiCI

Confidence Intervals for Variance Components
aiFun

Sampling (co)variances
FG90

Pedigree, adapted from Table 1 in Fernando & Grossman (1990)
F2009

Pedigree adapted from Fikse 2009 with genetic groups and fuzzy classification
LRTest

log-Likelihood Ratio Test
Mrode3

Pedigree, from chapter 3 of Mrode (2005) with genetic groups and a trait column
Mrode2

Pedigree from Table 2.1 of Mrode (2005)
Q1988

Pedigree with genetic groups adapted from Quaas (1988) equation [5]
findDFC

Finds the double first cousins in a pedigree
founderLine

Identifies the matriline or patriline to which each individual in a pedigree belongs
ggTutorial

Simulated dataset used to analyze data with genetic group animal models
ggcontrib

Genetic group contribution
constrainFun

Function used in conjunction with others to produce a profile likelihood for a variance component
drfx

Simulated design random effects
genAssign

Generation assignment
geneDrop

Functions to conduct gene dropping through a pedigree
grfx

Simulated genetic random effects
makeA

Creates the additive genetic relationship matrix
makeDsim

Create the dominance genetic relationship matrix through an iterative (simulation) process
makeDomEpi

Creates the additive by dominance and dominance by dominance epistatic genetic relationship matrices
makeMinv

Create the inverse (additive) mutational effects relationship matrix
makeS

Creates the additive genetic relationship matrix for the shared sex chromosomes
makeAinv

Creates the inverse additive genetic relationship matrix
makeAA

Creates the additive by additive epistatic genetic relationship matrix
makeAstarMult

Creates the inverse additive genetic relationship matrix with genetic groups
makeD

Create the dominance genetic relationship matrix
nadiv-package

(Non)Additive Genetic Relatedness Matrices in Animal Model Analyses
makeTinv

Creates components of the additive genetic relationship matrix and its inverse
pcc

REML convergence checks
simPedDFC

Double first cousin pedigree construction
pin

Approximate standard errors for linear functions of variance components
simPedHS

Half-sib pedigree construction
proLik

Profile Likelihoods
parConstrainFun

Function used in the proLik function to produce a profile likelihood for a variance component
prepPed

Prepares a pedigree by sorting and adding 'founders'
numPed

Integer Format Pedigree
varTrans

Transforms ASReml-R gamma sampling variances to component scale
warcolak

Pedigree and phenotypic values for a mythical population of Warcolaks
simPedMCN

Middle Class Neighborhood pedigree construction
simGG

Genetic group pedigree and data simulation
prunePed

Prunes a pedigree based on individuals with phenotypes
sm2list

Converts a sparse matrix into a three column format.