getAddCoefs {epinetr}R Documentation

Get additive coefficients.

Description

Retrieve additive coefficients from population.

Usage

getAddCoefs(pop)

Arguments

pop

a Population object with additive effects attached

Details

getAddCoefs retrieves the additive coefficients currently in use in a Population object, assuming additive effects have been attached.

Value

getAddCoefs returns the additive coefficients currently in use by the population.

Author(s)

Dion Detterer, Paul Kwan, Cedric Gondro

See Also

addEffects

Examples

# Construct a population with additive effects
pop <- Population(
  popSize = 200, map = map100snp, QTL = 20,
  alleleFrequencies = runif(100),
  broadH2 = 0.6, narrowh2 = 0.6, traitVar = 40
)
pop <- addEffects(pop)

# Get additive coefficients
additive <- getAddCoefs(pop)

[Package epinetr version 0.96 Index]