getEpiOffset {epinetr} | R Documentation |
Retrieve epistatic offset.
Description
Retrieve offset used for calculating epistatic component.
Usage
getEpiOffset(pop)
Arguments
pop |
A valid |
Details
In order for the initial population to have an epistatic component with a mean of 0 for its phenotype, an offset is added, and it remains fixed across generations. This function retrieves that offset.
Author(s)
Dion Detterer, Paul Kwan, Cedric Gondro
See Also
Examples
# Construct a new population with epistatic effects
pop <- Population(
popSize = 20, map = map100snp, QTL = 20,
broadH2 = 0.4, narrowh2 = 0, traitVar = 40,
alleleFrequencies = runif(100, 0.05, 0.5)
)
pop <- attachEpiNet(pop)
# Find the epistatic contribution to the individuals' phenotypes
rowSums(getEpistasis(pop)) + getEpiOffset(pop)
# Compare with epistatic component from getComponents()
getComponents(pop)$Epistatic
[Package epinetr version 0.96 Index]