-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathnadiv.R
28 lines (22 loc) · 998 Bytes
/
nadiv.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#' (Non)Additive Genetic Relatedness Matrices in Animal Model Analyses
#'
#' 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, which can be obtained upon purchase from
#' VSN international (<https://www.vsni.co.uk/software/asreml>).
#'
#' @aliases nadiv-package nadiv
#' @useDynLib nadiv, .registration = TRUE
#' @importFrom methods as is new
#' @importFrom graphics abline plot
#' @importFrom stats as.formula deriv na.omit optimize
#' @importFrom stats pchisq qchisq qnorm rnorm sd
#' @import Matrix
#' @author Matthew Wolak \email{matthewwolak@@gmail.com}
"_PACKAGE"
# nadiv Cleanup: Unload DLL when library unloaded
.onUnload <- function (libpath) {
library.dynam.unload("nadiv", libpath)
}