create_comrad_params: Create a list of standard comrad parameters

View source: R/create_comrad_params.R

create_comrad_paramsR Documentation

Create a list of standard comrad parameters

Description

Just returns a list with all standard parameters. This makes it easy to modify a few while keeping default values for others.

Usage

create_comrad_params(
  competition_sd = comrad::default_competition_sd(),
  carrying_cap_sd = comrad::default_carrying_cap_sd(),
  carrying_cap_opt = comrad::default_carrying_cap_opt(),
  trait_opt = comrad::default_trait_opt(),
  growth_rate = comrad::default_growth_rate(),
  prob_mutation = comrad::default_prob_mutation(),
  mutation_sd = comrad::default_mutation_sd(),
  trait_dist_sp = comrad::default_trait_dist_sp(),
  switch_carr_cap_sd_after = NA,
  switch_carr_cap_sd_to = NA
)

Arguments

competition_sd

numeric '>= 0'.Parameter σ_{α} of the competition coefficient. Modulates the the strength of competition between two individuals given their distance in trait space.

carrying_cap_sd

numeric '>= 0'. Parameter σ_K of the carrying capacity. Modulates how fast the carrying capacity decays when moving away from the optimal trait value.

carrying_cap_opt

numeric, value of the carrying capacity at 'trait_opt'

trait_opt

numeric. The optimal trait value, z_{opt}. get_carrying_cap(trait_opt) = carrying_cap_opt.

growth_rate

numeric '>= 0', the baseline growth rate. Generations being discrete, high values will cause chaos.

prob_mutation

numeric between 0 and 1, the probability that any new individual is sampled with a mutation.

mutation_sd

numeric '>= 0', the standard deviation of the normal distrbution from which mutations are drawn.

trait_dist_sp

numeric, the minimal trait distance between two clusters of individuals triggering speciation.

Author(s)

Théo Pannetier


TheoPannetier/hamr documentation built on Nov. 19, 2022, 3:48 a.m.