Learn R Programming

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

719

Version

2.18.0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

May 23rd, 2024

Functions in nadiv (2.18.0)

aic

Akaike Information Criterion
founderLine

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

Simulated design random effects
genAssign

Generation assignment
findDFC

Finds the double first cousins in a pedigree
ggcontrib

Genetic group contribution
geneDrop

Functions to conduct gene dropping through a pedigree
ggTutorial

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

Simulated genetic random effects
constrainFun

Fix a Model Parameter and Conduct Likelihood Ratio Test
makeA

Creates the additive genetic relationship matrix
makeDomEpi

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

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

Creates the (additive) mutational effects relationship matrix
makeS

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

Creates the additive by additive epistatic genetic relationship matrix
makeD

Create the dominance genetic relationship matrix
makeAinv

Creates the inverse additive genetic relationship matrix
makeAstarMult

Creates the inverse additive genetic relationship matrix with genetic groups
makeMinv

Create the inverse (additive) mutational effects relationship matrix
prepPed

Prepares a pedigree by sorting and adding 'founders'
prunePed

Prunes a pedigree based on individuals with phenotypes
simPedDFC

Double first cousin pedigree construction
nadiv-package

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

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

Integer Format Pedigree
simGG

Genetic group pedigree and data simulation
pcc

REML convergence checks
nadiv-deprecated

Deprecated functions in package nadiv.
pin-deprecated

Approximate standard errors for linear functions of variance components
warcolak

Pedigree and phenotypic values for a mythical population of Warcolaks
sm2list

Converts a sparse matrix into a three column format.
varTrans

Transforms ASReml-R gamma sampling variances to component scale
simPedMCN

Middle Class Neighborhood pedigree construction
simPedHS

Half-sib pedigree construction
FG90

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

log-Likelihood Ratio Test
aiCI

Confidence Intervals for Variance Components
aiFun

Sampling (co)variances
Wray90

Pedigree, adapted from Wray (1990)
Mrode2

Pedigree from Table 2.1 of Mrode (2005)
Mrode3

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

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

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

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