Skip to content

diogro/stanAnimal

Repository files navigation

Stan animal model

Animal model implementation in Stan.

Somewhat experimental, univariate works better, but multivariate is pretty good too.

Install

if (!requireNamespace("BiocManager", quietly = TRUE))
    install.packages("BiocManager")
BiocManager::install("rhdf5")
install.packages("remotes")
remotes::install_github("stan-dev/cmdstanr")
cmdstanr::install_cmdstan() 
install.packages("posterior", repos = c("https://mc-stan.org/r-packages/", getOption("repos")))
remotes::install_github("diogro/stanAnimal", subdir = "package")

Usage

# Y trait matrix
# X fixed effect model matrix
# A relatedness matrix
A = nadiv::makeA(pedigree)
lmm_animal(Y, X, A)

About

Animal model in Stan

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published