View source: R/FUN_relationships.R
simGECorMat | R Documentation |
Makes a simple correlation matrix based on the number of environments and megaenvironments desired.
simGECorMat(nEnv,nMegaEnv,mu=0.7, v=0.2, mu2=0, v2=0.3)
nEnv |
Number of environments to simulate. Needs to be divisible by the nMegaEnv argument. |
nMegaEnv |
Number of megaenvironments to simulate. |
mu |
Mean value of the genetic correlation within megaenvironments. |
v |
variance in the genetic correlation within megaenvironments. |
mu2 |
Mean value of the genetic correlation between megaenvironments. |
v2 |
variance in the genetic correlation between megaenvironments. |
Simple simulation of a correlation matrix for environments and megaenvironments.
G the correlation matrix
the correlation matrix
Covarrubias-Pazaran G (2016) Genome assisted prediction of quantitative traits using the R package sommer. PLoS ONE 11(6): doi:10.1371/journal.pone.0156744
mmer
– the core function of the package
simGECorMat(9,3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.