Learn R Programming

epinetr (version 0.96)

getAddCoefs: Get additive coefficients.

Description

Retrieve additive coefficients from population.

Usage

getAddCoefs(pop)

Arguments

pop

a Population object with additive effects attached

Value

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

Details

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

See Also

addEffects

Examples

Run this code
# NOT RUN {
# 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)
# }

Run the code above in your browser using DataLab