This package includes functions for reproducing the analysis in our litter diallel manuscript.
You can install litterDiallel
using the following steps. First, please make sure devtools
is installed in R.
-
Install MCMCglmm (for compatibility, must be version 2.25) in R:
devtools::install_version("MCMCglmm", version = "2.25", repos = "http://cran.us.r-project.org")
-
Install
litterDiallel
:devtools::install_github("mauriziopaul/litterDiallel", build_vignettes=TRUE)
-
You should then be able to load the package in R:
library(litterDiallel)
-
To load the data set,
litters
, use:data("litters")
-
For an overview of the analysis, see the vignette:
browseVignettes("litterDiallel")
-
For the model inclusion probability analysis, BayesDiallel and BayesSpike must be installed. The instructions are here.
-
For some simple, miscellaneous functions useful for this analysis, install the following package,
PLMcctools
:devtools::install_github("mauriziopaul/PLMcctools")
-
To install other suggested packages, use:
install.packages(c("tools", "data.table", "xtable"))