Calculate parent average
Usage
parentAverage(
pop,
parents = NULL,
mothers = NULL,
fathers = NULL,
use = "gv",
simParam = NULL
)Arguments
- pop
Pop-classwith individuals whose parent average will be calculated- parents
Pop-classwith mothers and fathers of individuals inpop; ifNULLmust providemothersandfathers- mothers
Pop-classwith mothers of individuals inpop; ifNULLmust provideparents- fathers
Pop-classwith fathers of individuals inpop; ifNULLmust provideparents- use
- simParam
SimParamobject
Examples
#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)
#> Error in get("SP", envir = .GlobalEnv): object 'SP' not found
parentAverage(pop2, parents = pop)
#> Error in get("SP", envir = .GlobalEnv): object 'SP' not found
parentAverage(pop2, mothers = pop, fathers = pop)
#> Error in get("SP", envir = .GlobalEnv): object 'SP' not found