getComponents {epinetr} | R Documentation |
Get phenotypic components.
Description
Get pedigree and phenotypic data from current population.
Usage
getComponents(pop)
Arguments
pop |
a |
Details
Retrieves the pedigree and phenotypic data components from all individuals in the current population.
Value
Returns a data.frame
giving the individual's ID,
the ID of the sire, the ID of the dam, the additive, epistatic and
environmental components of the phenotype and the overall
phenotypic value.
Author(s)
Dion Detterer, Paul Kwan, Cedric Gondro
See Also
Population
, addEffects
,
attachEpiNet
Examples
# Construct a population with additive and epistatic effects
pop <- Population(
popSize = 200, map = map100snp, QTL = 20,
alleleFrequencies = runif(100),
broadH2 = 0.9, narrowh2 = 0.6, traitVar = 40
)
pop <- addEffects(pop)
pop <- attachEpiNet(pop)
# Retrieve phenotypic components from population
components <- getComponents(pop)
[Package epinetr version 0.96 Index]