| parentAverage | R Documentation |
Calculate parent average
parentAverage(
pop,
parents = NULL,
mothers = NULL,
fathers = NULL,
use = "gv",
simParam = NULL
)
pop |
|
parents |
|
mothers |
|
fathers |
|
use |
character, calculate using |
simParam |
|
a matrix of parent averages with dimensions nInd by nTraits
#Create founder haplotypes
founderPop = quickHaplo(nInd=10, nChr=1, segSites=10)
#Set simulation parameters
SP = SimParam$new(founderPop)
SP$addTraitAD(10, meanDD=0.5)
SP$setVarE(h2=0.5)
#Create population
pop = newPop(founderPop, simParam=SP)
pop2 = randCross(pop, nCrosses=10, nProgeny=2)
parentAverage(pop2, parents = pop)
parentAverage(pop2, mothers = pop, fathers = pop)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.