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:

Overview of main branches:

  • master branch is the most recent production version (typically the same as what is available from the R CRAN mirrors)

  • devel branch is a preview of the next release which should be functional and error/bug free, but proceed with caution

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](https://CRAN.R-project.org/)
  • From GitHub:
    • clone or download the latest development version here
    • install the latest development version directly in R using the remotes package https://github.com/r-lib/remotes:
   library(remotes); install_github("matthewwolak/nadiv", ref = "devel")

Copy Link

Version

Install

install.packages('nadiv')

Monthly Downloads

641

Version

2.17.2

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Matthew Wolak

Last Published

December 7th, 2022

Functions in nadiv (2.17.2)

Mrode9

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

log-Likelihood Ratio Test
aiFun

Sampling (co)variances
aiCI

Confidence Intervals for Variance Components
Wray90

Pedigree, adapted from Wray (1990)
Q1988

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

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

Pedigree from Table 2.1 of Mrode (2005)
ggTutorial

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

Finds the double first cousins in a pedigree
founderLine

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

Generation assignment
constrainFun

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

Functions to conduct gene dropping through a pedigree
aic

Akaike Information Criterion
drfx

Simulated design random effects
ggcontrib

Genetic group contribution
grfx

Simulated genetic random effects
makeAstarMult

Creates the inverse additive genetic relationship matrix with genetic groups
makeMinv

Create the inverse (additive) mutational effects relationship matrix
makeAinv

Creates the inverse additive genetic relationship matrix
makeS

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

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

Create the dominance genetic relationship matrix
prepPed

Prepares a pedigree by sorting and adding 'founders'
makeAA

Creates the additive by additive epistatic genetic relationship matrix
pin-deprecated

Approximate standard errors for linear functions of variance components
makeA

Creates the additive genetic relationship matrix
nadiv-package

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

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

Creates the (additive) mutational effects relationship matrix
parConstrainFun

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

REML convergence checks
simPedMCN

Middle Class Neighborhood pedigree construction
simPedDFC

Double first cousin pedigree construction
simPedHS

Half-sib pedigree construction
simGG

Genetic group pedigree and data simulation
prunePed

Prunes a pedigree based on individuals with phenotypes
proLik

Profile Likelihoods
warcolak

Pedigree and phenotypic values for a mythical population of Warcolaks
numPed

Integer Format Pedigree
nadiv-deprecated

Deprecated functions in package nadiv.
makeTinv

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

Transforms ASReml-R gamma sampling variances to component scale
sm2list

Converts a sparse matrix into a three column format.
FG90

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

Pedigree adapted from Fikse 2009 with genetic groups and fuzzy classification