Skip to contents

Combines a genetic architecture, a mutation model, recombination and environmental noise.

Usage

evomod_model(
  architecture,
  mutation,
  env_sd = 0,
  init_sd = 0,
  recombination = free_recombination(),
  life_cycle = wright_fisher()
)

Arguments

architecture

an architecture, see architectures.

mutation

a mutation model matching the architecture, see mutation().

env_sd

standard deviation of environmental effects \(e\) in \(z = x + e\).

init_sd

standard deviation of allelic effects in a new population (y for binary_b()); 0 (the default) starts every individual at the reference genotype.

recombination

how loci are inherited, see recombination; free recombination by default.

life_cycle

wright_fisher() (discrete generations, the default), moran() (overlapping generations) or viability_selection() (separate sexes and viability selection, Jones et al.).

Value

An evomod_model object.

Examples

model <- evomod_model(additive(loci = 50, traits = 2),
                      mutation(rate = 0.005, cov = 0.05), env_sd = 1)