create_comsie_params: Create a list of standard comsie parameters

View source: R/create_comsie_params.R

create_comsie_paramsR Documentation

Create a list of standard comsie 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_comsie_params(
  immigration_rate = 0.001,
  mainland_nb_species = comsie::default_mainland_nb_species(),
  mainland_z_sd = comsie::default_mainland_z_sd(),
  competition_sd = comsie::default_competition_sd(),
  carrying_cap_sd = comsie::default_carrying_cap_sd(),
  carrying_cap_opt = comrad::default_carrying_cap_opt(),
  trait_opt = comrad::default_trait_opt(),
  growth_rate = comrad::default_growth_rate(),
  mutation_sd = comrad::default_mutation_sd(),
  trait_dist_sp = comrad::default_trait_dist_sp()
)

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.

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.